Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: da8edba830368030b9b07745629991509299ee4c
      
https://github.com/WebKit/WebKit/commit/da8edba830368030b9b07745629991509299ee4c
  Author: Simon Fraser <[email protected]>
  Date:   2024-12-02 (Mon, 02 Dec 2024)

  Changed paths:
    M Source/bmalloc/bmalloc.xcodeproj/project.pbxproj
    M Source/bmalloc/bmalloc/IsoHeap.cpp
    M Source/bmalloc/bmalloc/IsoHeapInlines.h
    M Source/bmalloc/bmalloc/TZoneHeap.cpp
    M Source/bmalloc/libpas/src/libpas/bmalloc_heap.c
    M Source/bmalloc/libpas/src/libpas/bmalloc_heap_inlines.h
    M Source/bmalloc/libpas/src/libpas/bmalloc_heap_innards.h
    A Source/bmalloc/libpas/src/libpas/bmalloc_heap_internal.h

  Log Message:
  -----------
  Reduce the size of bmalloc_heap_inlines.h
https://bugs.webkit.org/show_bug.cgi?id=283926
rdar://140803289

Reviewed by Mark Lam.

bmalloc_heap_inlines.h is the single most expensive header in WebKit, taking 
about 2.3s to parse in every compilation
unit which includes it (which is most of them).

bmalloc_heap_inlines.h also has some functions declared in it which are 
internal to bmalloc, so move those to
a new bmalloc_heap_internal.h header, which is included from the few bmalloc 
cpp files that need it.

Also remove some includes from IsoHeapInlines.h which don't seem to be required 
there.

Parsing bmalloc_heap_inlines.h goes from 2.3s to 1.5s with this change.

* Source/bmalloc/bmalloc.xcodeproj/project.pbxproj:
* Source/bmalloc/bmalloc/IsoHeap.cpp:
* Source/bmalloc/bmalloc/IsoHeapInlines.h:
* Source/bmalloc/bmalloc/TZoneHeap.cpp:
* Source/bmalloc/libpas/src/libpas/bmalloc_heap.c:
* Source/bmalloc/libpas/src/libpas/bmalloc_heap_inlines.h:
(bmalloc_try_iso_allocate_inline): Deleted.
(bmalloc_iso_allocate_inline): Deleted.
(bmalloc_try_iso_allocate_array_by_size_inline): Deleted.
(bmalloc_try_iso_allocate_zeroed_array_by_size_inline): Deleted.
(bmalloc_try_iso_allocate_array_by_size_with_alignment_inline): Deleted.
(bmalloc_try_iso_allocate_array_by_count_inline): Deleted.
(bmalloc_try_iso_allocate_array_by_count_with_alignment_inline): Deleted.
(bmalloc_iso_allocate_array_by_size_inline): Deleted.
(bmalloc_iso_allocate_zeroed_array_by_size_inline): Deleted.
(bmalloc_iso_allocate_array_by_size_with_alignment_inline): Deleted.
(bmalloc_iso_allocate_array_by_count_inline): Deleted.
(bmalloc_iso_allocate_array_by_count_with_alignment_inline): Deleted.
(bmalloc_try_iso_reallocate_array_by_size_inline): Deleted.
(bmalloc_iso_reallocate_array_by_size_inline): Deleted.
(bmalloc_try_iso_reallocate_array_by_count_inline): Deleted.
(bmalloc_iso_reallocate_array_by_count_inline): Deleted.
(bmalloc_try_allocate_flex_inline): Deleted.
(bmalloc_allocate_flex_inline): Deleted.
(bmalloc_try_allocate_zeroed_flex_inline): Deleted.
(bmalloc_allocate_zeroed_flex_inline): Deleted.
(bmalloc_try_allocate_flex_with_alignment_inline): Deleted.
(bmalloc_allocate_flex_with_alignment_inline): Deleted.
(bmalloc_try_reallocate_flex_inline): Deleted.
(bmalloc_reallocate_flex_inline): Deleted.
* Source/bmalloc/libpas/src/libpas/bmalloc_heap_innards.h:
* Source/bmalloc/libpas/src/libpas/bmalloc_heap_internal.h: Copied from 
Source/bmalloc/libpas/src/libpas/bmalloc_heap_inlines.h.
(bmalloc_try_iso_allocate_inline):
(bmalloc_iso_allocate_inline):
(bmalloc_try_iso_allocate_array_by_size_inline):
(bmalloc_try_iso_allocate_zeroed_array_by_size_inline):
(bmalloc_try_iso_allocate_array_by_size_with_alignment_inline):
(bmalloc_try_iso_allocate_array_by_count_inline):
(bmalloc_try_iso_allocate_array_by_count_with_alignment_inline):
(bmalloc_iso_allocate_array_by_size_inline):
(bmalloc_iso_allocate_zeroed_array_by_size_inline):
(bmalloc_iso_allocate_array_by_size_with_alignment_inline):
(bmalloc_iso_allocate_array_by_count_inline):
(bmalloc_iso_allocate_array_by_count_with_alignment_inline):
(bmalloc_try_iso_reallocate_array_by_size_inline):
(bmalloc_iso_reallocate_array_by_size_inline):
(bmalloc_try_iso_reallocate_array_by_count_inline):
(bmalloc_iso_reallocate_array_by_count_inline):
(bmalloc_try_allocate_flex_inline):
(bmalloc_allocate_flex_inline):
(bmalloc_try_allocate_zeroed_flex_inline):
(bmalloc_allocate_zeroed_flex_inline):
(bmalloc_try_allocate_flex_with_alignment_inline):
(bmalloc_allocate_flex_with_alignment_inline):
(bmalloc_try_reallocate_flex_inline):
(bmalloc_reallocate_flex_inline):

Canonical link: https://commits.webkit.org/287235@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to