File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ use vortex_array::IntoArray;
1515use vortex_array:: RecursiveCanonical ;
1616use vortex_array:: VortexSessionExecute ;
1717use vortex_array:: arrays:: PrimitiveArray ;
18- use vortex_array:: session:: ArraySession ;
1918use vortex_array:: validity:: Validity ;
2019use vortex_buffer:: Buffer ;
2120use vortex_runend:: RunEnd ;
@@ -25,8 +24,11 @@ fn main() {
2524 divan:: main ( ) ;
2625}
2726
28- static SESSION : LazyLock < VortexSession > =
29- LazyLock :: new ( || VortexSession :: empty ( ) . with :: < ArraySession > ( ) ) ;
27+ static SESSION : LazyLock < VortexSession > = LazyLock :: new ( || {
28+ let session = vortex_array:: array_session ( ) ;
29+ vortex_runend:: initialize ( & session) ;
30+ session
31+ } ) ;
3032
3133#[ derive( Clone , Copy ) ]
3234enum IndexPattern {
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ use divan::counter::BytesCount;
1313use mimalloc:: MiMalloc ;
1414use rand:: RngExt ;
1515use rand:: SeedableRng ;
16+ use vortex:: VortexSessionDefault ;
1617use vortex:: array:: ArrayRef ;
1718use vortex:: array:: Canonical ;
1819use vortex:: array:: IntoArray ;
@@ -52,7 +53,7 @@ fn main() {
5253 divan:: main ( ) ;
5354}
5455
55- static SESSION : LazyLock < VortexSession > = LazyLock :: new ( vortex_array :: array_session ) ;
56+ static SESSION : LazyLock < VortexSession > = LazyLock :: new ( VortexSession :: default ) ;
5657
5758const NUM_VALUES : u64 = 100_000 ;
5859
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ use rand::RngExt;
1414use rand:: SeedableRng ;
1515use rand:: prelude:: IndexedRandom ;
1616use rand:: rngs:: StdRng ;
17+ use vortex:: VortexSessionDefault ;
1718use vortex:: array:: Canonical ;
1819use vortex:: array:: ExecutionCtx ;
1920use vortex:: array:: IntoArray ;
@@ -45,7 +46,7 @@ use vortex_session::VortexSession;
4546#[ global_allocator]
4647static GLOBAL : MiMalloc = MiMalloc ;
4748
48- static SESSION : LazyLock < VortexSession > = LazyLock :: new ( vortex_array :: array_session ) ;
49+ static SESSION : LazyLock < VortexSession > = LazyLock :: new ( VortexSession :: default ) ;
4950
5051fn main ( ) {
5152 divan:: main ( ) ;
You can’t perform that action at this time.
0 commit comments