Revert "[arraybuffer] Organize views in a hash_set"
This reverts commit f366e7dd. Reason for revert: Performance regression, see https://crbug.com/1026763. The original implementation optimized better for the case where there exists exactly one view. Original change's description: > [arraybuffer] Organize views in a hash_set > > This is a first step of getting rid of blink::ArrayBuffer. > > blink::ArrayBuffer serves two purposes by now: > 1) Managing a list of ArrayBufferViews; > 2) Managing the detached flag; > > With this CL I encapsulate the list of ArrayBufferViews. In follow-up > CLs I then want to pass the list and an ArrayBufferContents object > to the ArrayBufferView instead of the ArrayBuffer object. This will > bring us one step closer to removing blink::ArrayBuffer. > > Update: ArrayBuffer seems to be very involved. It is the connecting > data structure between DOMArrayBuffer, ArrayBufferContents, and > ArrayBufferView. Even though it is not used anymore outside these > classes, it is not obvious if we can replace it within these classes. > I still think that refactoring the organization of views here is > good. > > R=haraken@chromium.org > > Bug: chromium:1008840 > Change-Id: I533f5496b7c51312e77a0138ac8249f9f0e55ffd > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1911207 > Reviewed-by: Kentaro Hara <haraken@chromium.org> > Commit-Queue: Andreas Haas <ahaas@chromium.org> > Cr-Commit-Position: refs/heads/master@{#714880} TBR=haraken@chromium.org,ahaas@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: chromium:1008840, chromium:1026763 Change-Id: Ifad3b3b8cf46290b9bf0f2d4ef958fdd7c414ed4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1930817Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Andreas Haas <ahaas@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#718117}
Showing
Please register or sign in to comment