mirror of
https://github.com/google/go-jsonnet.git
synced 2025-12-24 18:41:07 +01:00
People use these operators in tight loops, without even thinking about it, and it's previous implementation required multiple object lookups (std.), string comparisons (for types) and multiple jsonnet function calls. This change introduces builtin, efficient implementation. It results in ~3x speedup in strContains benchmark that Angus provided on Slack. Additional benefit is that equals/primitiveEquals distinction is now obsolete, which made things simpler for everyone.
2 lines
6 B
Plaintext
2 lines
6 B
Plaintext
false
|