package incr_map
Helpers for incremental operations on map like data structures
Install
Dune Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=91acc784e4760af8544c4504bee1a9f6d7385eb0620f8e56392cd193a250b7d2
doc/incr_map.erase_key/Opaque_map/index.html
Module Opaque_map
Source
include Diffable.S1 with type 'a t := 'a t
Source
val erase_key_incrementally :
?data_equal:('data -> 'data -> bool) ->
(('key, 'data, _) Core.Map.t, 'w) Incremental.t ->
get:(key:'key -> data:'data -> 'a) ->
('a t, 'w) Incremental.t
When Opaque_maps are created incrementally we can be smart about insertion and get good performance around insertion and rebalancing.
empty
, of_list
, and of_array
won't give you nice incrementality like erase_key_incrementally
, but they are still fine if the primary goal is using the type itself outside of an incremental context.
But if possible, consider erase_key_incrementally
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>