Skip to main content

Module caching_source_map_view

Module caching_source_map_view 

Source

Structs§

CachingSourceMapView
A SourceMap wrapper that caches info about a single recent code position. This gives a good speedup when hashing spans, because often multiple spans within a single line are hashed in succession, and this avoids expensive SourceMap lookups each time the cache is hit. We used to cache multiple code positions, but caching a single position ended up being simpler and faster.

Functions§

file_contains 🔒