Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deduplicate stacks #223

Draft
wants to merge 12 commits into
base: stack-orientation
Choose a base branch
from
Draft

Conversation

hendrikvanantwerpen
Copy link
Collaborator

Implements an interning Arena that is used for deduplicating symbol and scope stacks.

@hendrikvanantwerpen hendrikvanantwerpen self-assigned this Mar 15, 2023
@github-actions
Copy link

Performance Summary

Comparing base 4840877 with head bd83ec0 on microsoft/[email protected]. For details see workflow artifacts. Note that performance is tested on the last commits with changes in stack-graphs, not on every commit.

Before
--------------------------------------------------------------------------------
Command:            base/target/release/tree-sitter-stack-graphs-typescript analyze --max-file-time=30 --hide-error-details -- test/src/compiler
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 base-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
4.643^                     ##                                                 
     |                     #                                                  
     |                     #                                                  
     |                     #                                                  
     |                     #                                                  
     |                     #     ::                                 :         
     |                    :#     :                                  :     :@  
     |                    :#     :            :                     :     :@  
     |                    :#     :            :                    ::   :::@  
     |      @@  @@      @@:#     :            :                    ::   :::@  
     |      @   @       @ :#   :::        :   :                   :::   :::@  
     |      @  :@   :  :@ :#   : :     @:::  ::       :           ::: :::::@  
   0 +----------------------------------------------------------------------->Gi
     0                                                                   192.5
After
--------------------------------------------------------------------------------
Command:            head/target/release/tree-sitter-stack-graphs-typescript analyze --max-file-time=30 --hide-error-details -- test/src/compiler
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 head-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
4.835^                                                               ##       
     |                                                               #        
     |                                                               #        
     |                                                               #        
     |                                                               #        
     |                                                             ::#        
     |                  @::     @@                                 : #     @  
     |         @@       @:      @                                  : #     @  
     |         @        @:      @                                 :: #     @  
     |         @        @:     :@            :                    :: #   ::@  
     |         @   :  ::@:     :@            :                    :: #  :: @  
     |        :@   :  : @:   :::@     @@::   :       ::         :::: # ::: @  
   0 +----------------------------------------------------------------------->Gi
     0                                                                   242.3

@github-actions
Copy link

Performance Summary

Comparing base 4840877 with head 5afabb3 on microsoft/[email protected]. For details see workflow artifacts. Note that performance is tested on the last commits with changes in stack-graphs, not on every commit.

Before
--------------------------------------------------------------------------------
Command:            base/target/release/tree-sitter-stack-graphs-typescript analyze --max-file-time=30 --hide-error-details -- test/src/compiler
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 base-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
4.643^                     ##                                                 
     |                     #                                                  
     |                     #                                                  
     |                     #                                                  
     |                     #                                                  
     |                     #     ::                                 :         
     |                    :#     :                                  :     :@  
     |                    :#     :            :                     :     :@  
     |                    :#     :            :                    ::   :::@  
     |      @@  @@      @@:#     :            :                    ::   :::@  
     |      @   @       @ :#   :::        :   :                   :::   :::@  
     |      @  :@   :  :@ :#   : :     @:::  ::       :           ::: :::::@  
   0 +----------------------------------------------------------------------->Gi
     0                                                                   192.5
After
--------------------------------------------------------------------------------
Command:            head/target/release/tree-sitter-stack-graphs-typescript analyze --max-file-time=30 --hide-error-details -- test/src/compiler
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 head-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
5.064^                                ##                                      
     |                               :#                            :::    ::  
     |                        :      :#                            :::    ::  
     |                        :      :#                            :::    ::  
     |                        :      :#                            :::    ::  
     |              @@        :      :#                            :::    ::  
     |         @@:::@         :    :::#                            :::    @:  
     |         @ :::@        @:    :::#      ::                    :::   :@:  
     |        @@ :::@ @      @:    :::#      :                     :::   :@:  
     |        @@ :::@ @      @:   @:::#      :                   :::::  ::@:  
     |       :@@ :::@ @     :@:   @:::#      :                   : :::  ::@:  
     |    :  :@@ :::@ @     :@:   @:::#   :  :  :: :      :      : :::::::@:  
   0 +----------------------------------------------------------------------->Gi
     0                                                                   245.6

@github-actions
Copy link

Performance Summary

Comparing base 4840877 with head 0a3fd73 on microsoft/[email protected]. For details see workflow artifacts. Note that performance is tested on the last commits with changes in stack-graphs, not on every commit.

Before
--------------------------------------------------------------------------------
Command:            base/target/release/tree-sitter-stack-graphs-typescript analyze --max-file-time=30 --hide-error-details -- test/src/compiler
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 base-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
4.643^                     ##                                                 
     |                     #                                                  
     |                     #                                                  
     |                     #                                                  
     |                     #                                                  
     |                     #     ::                                 :         
     |                    :#     :                                  :     :@  
     |                    :#     :            :                     :     :@  
     |                    :#     :            :                    ::   :::@  
     |      @@  @@      @@:#     :            :                    ::   :::@  
     |      @   @       @ :#   :::        :   :                   :::   :::@  
     |      @  :@   :  :@ :#   : :     @:::  ::       :           ::: :::::@  
   0 +----------------------------------------------------------------------->Gi
     0                                                                   192.5
After
--------------------------------------------------------------------------------
Command:            head/target/release/tree-sitter-stack-graphs-typescript analyze --max-file-time=30 --hide-error-details -- test/src/compiler
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 head-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
9.065^                                  #                                     
     |                                  #                                     
     |                                  #                                     
     |                                  #                                     
     |                                  #                                     
     |                                  #                                     
     |                         :      ::#                           ::     :  
     |                         :      ::#                           ::     :  
     |              @          :      ::#                           ::     :  
     |         @::::@ :       ::   ::@::#      :                  @:::   :@:  
     |        @@::: @::       ::  :: @::#      :                  @:::  ::@:  
     |       :@@::: @:::     :::  :: @::#     ::  :        :     :@:::  ::@:  
   0 +----------------------------------------------------------------------->Gi
     0                                                                   254.9

@hendrikvanantwerpen hendrikvanantwerpen changed the base branch from main to stack-orientation March 20, 2023 11:03
@github-actions
Copy link

Performance Summary

Comparing base 4840877 with head 1caa5ee on microsoft/[email protected]. For details see workflow artifacts. Note that performance is tested on the last commits with changes in stack-graphs, not on every commit.

Before
--------------------------------------------------------------------------------
Command:            base/target/release/tree-sitter-stack-graphs-typescript analyze --max-file-time=30 --hide-error-details -- test/src/compiler
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 base-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
4.643^                     ##                                                 
     |                     #                                                  
     |                     #                                                  
     |                     #                                                  
     |                     #                                                  
     |                     #     ::                                 :         
     |                    :#     :                                  :     :@  
     |                    :#     :            :                     :     :@  
     |                    :#     :            :                    ::   :::@  
     |      @@  @@      @@:#     :            :                    ::   :::@  
     |      @   @       @ :#   :::        :   :                   :::   :::@  
     |      @  :@   :  :@ :#   : :     @:::  ::       :           ::: :::::@  
   0 +----------------------------------------------------------------------->Gi
     0                                                                   192.5
After
--------------------------------------------------------------------------------
Command:            head/target/release/tree-sitter-stack-graphs-typescript analyze --max-file-time=30 --hide-error-details -- test/src/compiler
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 head-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
4.773^                                                              #         
     |                    @                                         #     ::  
     |                    @                                         #     ::  
     |                    @                                         #     ::  
     |                    @                                         #     ::  
     |                    @                                         #     ::  
     |                  ::@    ::        :                        ::#    :@:  
     |         @        ::@    ::        :                        ::#    :@:  
     |         @        ::@    ::        :                       :::#    :@:  
     |     :   @      ::::@    ::        :   :                   :::#  :::@:  
     |     : ::@      ::::@  ::::       ::   :       :  :      @::::#  :::@:  
     |     : : @  :  :::::@  : ::     ::::  ::      ::  :      @::::#:::::@:  
   0 +----------------------------------------------------------------------->Gi
     0                                                                   257.7

@hendrikvanantwerpen hendrikvanantwerpen changed the title Deduplicate stacks [Performance Experiment] Deduplicate stacks Mar 30, 2023
@hendrikvanantwerpen hendrikvanantwerpen changed the title [Performance Experiment] Deduplicate stacks Deduplicate stacks Mar 30, 2023
@hendrikvanantwerpen hendrikvanantwerpen removed their assignment Jul 3, 2023
@hendrikvanantwerpen hendrikvanantwerpen self-assigned this Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant