[webkit-changes] [WebKit/WebKit] 256613: Small optimization of FloatPoint serialization in ...

Chris Dumez noreply at github.com
Fri Sep 1 13:49:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 256613d5471864884f5520800eba1bc934978ee5
      https://github.com/WebKit/WebKit/commit/256613d5471864884f5520800eba1bc934978ee5
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-09-01 (Fri, 01 Sep 2023)

  Changed paths:
    M Source/WebCore/svg/SVGPathByteStreamBuilder.cpp
    M Source/WebCore/svg/SVGPathByteStreamBuilder.h
    M Source/WebCore/svg/SVGPathByteStreamSource.h

  Log Message:
  -----------
  Small optimization of FloatPoint serialization in SVGPathByteStream
https://bugs.webkit.org/show_bug.cgi?id=261034

Reviewed by Timothy Hatcher and Ryosuke Niwa.

Serialize FloatPoint directly as a FloatPoint instead of doing
is as two separate floats. Since we end up appending to a byte Vector, it
helps to know how many bytes we're going to append in advance.
A FloatPoint only has 2 float data members anyway.

* Source/WebCore/svg/SVGPathByteStreamBuilder.h:
* Source/WebCore/svg/SVGPathByteStreamSource.h:

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




More information about the webkit-changes mailing list