Documentation ¶
Rendered for js/wasm
Overview ¶
Package jscache caches expensive JavaScript results, like string encoding
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Strings ¶
type Strings struct {
// contains filtered or unexported fields
}
Strings caches encoding strings as safejs.Value's. String encoding today is quite CPU intensive, so caching commonly used strings helps with performance.
func (*Strings) GetProperty ¶
GetProperty retrieves the given object's property, using a cached string value if available. Saves on the performance cost of 2 round trips to JS.
Click to show internal directories.
Click to hide internal directories.