Skip to content

JSStream class>>encodeString:on: optimizes speed for Pharo but not always for other platforms. Move to platform-specific package. #1458

@jbrichau

Description

@jbrichau

The implementation of JSStream class>>encodeString:on: is a hotspot method when generating large pieces of Javascript. As such, its optimization is important. Optimizations may differ between platforms, requiring a specialization per supported platform.

In VAST, because of the distinction between String with Character and UnicodeString with Grapheme, the optimization needs to be very different to obtain reasonable speeds.

Therefore, the implementation of this method should be moved to platform-specific packages.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions