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

Add Python #282

Merged
merged 61 commits into from
Jan 29, 2024
Merged

Add Python #282

merged 61 commits into from
Jan 29, 2024

Conversation

hendrikvanantwerpen
Copy link
Collaborator

@hendrikvanantwerpen hendrikvanantwerpen commented Jun 2, 2023

#358 »

This adds rules for Python based on a legacy specification written in a precursor of tree-sitter-stack-graphs.

@hendrikvanantwerpen hendrikvanantwerpen self-assigned this Jun 2, 2023
@hendrikvanantwerpen hendrikvanantwerpen changed the base branch from main to test-timeout June 2, 2023 15:14
Base automatically changed from test-timeout to main June 2, 2023 15:33
@hendrikvanantwerpen hendrikvanantwerpen force-pushed the add-python branch 2 times, most recently from 6138853 to f88f237 Compare June 8, 2023 10:55
@hendrikvanantwerpen hendrikvanantwerpen removed their assignment Jul 3, 2023
Copy link

Performance Summary

Comparing base 3696992 with head 5776934 on typescript_benchmark benchmark. 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 index -D base.sqlite --max-file-time=30 --hide-error-details -- base/data/typescript_benchmark
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 base-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
3.276^                                                                     :# 
     |                                                                     :# 
     |                                                                     :# 
     |                                                                     :#:
     |                                                                     :#:
     |                                                                     :#:
     |                                             :::@                : :::#:
     |                                             :  @                ::: :#:
     |                                          @@@:  @               :::: :#:
     |                                       :::@  :  @               :::: :#:
     |                                 @    ::  @  :  @        ::@:  @:::: :#:
     |             ::: ::@     :    ::@@:::@::  @  :  @       :::@:::@:::: :#:
   0 +----------------------------------------------------------------------->Gi
     0                                                                   74.84
After
--------------------------------------------------------------------------------
Command:            head/target/release/tree-sitter-stack-graphs-typescript index -D head.sqlite --max-file-time=30 --hide-error-details -- head/data/typescript_benchmark
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 head-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
3.276^                                                                     :# 
     |                                                                     :# 
     |                                                                     :# 
     |                                                                     :#:
     |                                                                     :#:
     |                                                                     :#:
     |                                             :::@                : :::#:
     |                                             :  @                ::: :#:
     |                                          @@@:  @               :::: :#:
     |                                       :::@  :  @               :::: :#:
     |                                @@    ::  @  :  @         :@   @:::: :#:
     |              : ::::     :     :@@:::@::  @  :  @       :::@:::@:::: :#:
   0 +----------------------------------------------------------------------->Gi
     0                                                                   74.84

Copy link

Performance Summary

Comparing base 1b01a8c with head 696981c on typescript_benchmark benchmark. 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 index -D base.sqlite --max-file-time=30 --hide-error-details -- base/data/typescript_benchmark
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 base-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
1.406^                                               #                        
     |                                               #                      : 
     |                                             ::#                      : 
     |                                          :::: #                      : 
     |                                          : :: #                      : 
     |                                          : :: #                  ::::: 
     |                                         :: :: #                  :   : 
     |                                  @:    ::: :: #         :::     @:   : 
     |                    @             @:    ::: :: #         :@:   ::@:   : 
     |              :    @@           @:@:   :::: :: #        ::@: : : @:   : 
     |              : @::@@     :     @:@:::::::: :: #       :::@::::: @:   : 
     |             @::@::@@ :::::     @:@:::::::: :: #   :   :::@::::: @:   : 
   0 +----------------------------------------------------------------------->Gi
     0                                                                   71.31
After
--------------------------------------------------------------------------------
Command:            head/target/release/tree-sitter-stack-graphs-typescript index -D head.sqlite --max-file-time=30 --hide-error-details -- head/data/typescript_benchmark
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 head-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
1.406^                                               #                        
     |                                               #                      : 
     |                                             ::#                      : 
     |                                          ::@: #                      : 
     |                                          : @: #                      : 
     |                                          : @: #                 :::::: 
     |                                         :: @: #                 :    : 
     |                                   :    ::: @: #         ::@     :    : 
     |                    @             ::    ::: @: #         ::@   @::    : 
     |              @:   :@            :::  ::::: @: #        :::@ ::@ :    : 
     |              @ ::::@     :     ::::::::::: @: #       ::::@:::@ :    : 
     |             @@ ::::@ ::@::    :::::::::::: @: # :  :  @:::@:::@ :    : 
   0 +----------------------------------------------------------------------->Gi
     0                                                                   71.28

Copy link

github-actions bot commented Dec 1, 2023

Performance Summary

Comparing base 1b01a8c with head 155beb8 on typescript_benchmark benchmark. 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 index -D base.sqlite --max-file-time=30 --hide-error-details -- base/data/typescript_benchmark
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 base-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
1.406^                                               #                        
     |                                               #                      : 
     |                                             ::#                      : 
     |                                          :::: #                      : 
     |                                          : :: #                      : 
     |                                          : :: #                  ::::: 
     |                                         :: :: #                  :   : 
     |                                  @:    ::: :: #         :::     @:   : 
     |                    @             @:    ::: :: #         :@:   ::@:   : 
     |              :    @@           @:@:   :::: :: #        ::@: : : @:   : 
     |              : @::@@     :     @:@:::::::: :: #       :::@::::: @:   : 
     |             @::@::@@ :::::     @:@:::::::: :: #   :   :::@::::: @:   : 
   0 +----------------------------------------------------------------------->Gi
     0                                                                   71.31
After
--------------------------------------------------------------------------------
Command:            head/target/release/tree-sitter-stack-graphs-typescript index -D head.sqlite --max-file-time=30 --hide-error-details -- head/data/typescript_benchmark
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 head-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
1.702^                                              :::#                      
     |                                              :  #                      
     |                                              :  #                      
     |                                              :  #                     :
     |                                           ::::  #                    ::
     |                                        ::@:  :  #                    ::
     |                                        : @:  :  #                @@@@::
     |                                       :: @:  :  #                @   ::
     |                                  :   ::: @:  :  #         ::     @   ::
     |                   @            @::   ::: @:  :  #        :@:  :::@   ::
     |             :   ::@     @     :@:::::::: @:  :  #       ::@::::: @   ::
     |            @::::::@ :  :@   : :@:::::::: @:  :  #   :  :::@::::: @   ::
   0 +----------------------------------------------------------------------->Gi
     0                                                                   74.30

@hendrikvanantwerpen hendrikvanantwerpen self-assigned this Dec 4, 2023
@hendrikvanantwerpen hendrikvanantwerpen marked this pull request as ready for review December 4, 2023 12:43
@hendrikvanantwerpen hendrikvanantwerpen requested a review from a team as a code owner December 4, 2023 12:43
Copy link

Performance Summary

Comparing base 1b01a8c with head 155beb8 on typescript_benchmark benchmark. 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 index -D base.sqlite --max-file-time=30 --hide-error-details -- base/data/typescript_benchmark
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 base-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
1.702^                                            :::#                        
     |                                            :  #                        
     |                                            :  #                        
     |                                            :  #                    ::::
     |                                          :::  #                   ::: :
     |                                         :: :  #                   ::: :
     |                                       :::: :  #                   ::: :
     |                                       : :: :  #                   ::: :
     |                                @@   ::: :: :  #        :::    ::::::: :
     |                   @           :@@   : : :: :  #        :::  :::   ::: :
     |             ::: ::@    :      :@@:::: : :: :  #       ::::@:: :   ::: :
     |            @::::::@ : :: :   ::@@: :: : :: :  #       ::::@:: :   ::: :
   0 +----------------------------------------------------------------------->Gi
     0                                                                   74.10
After
--------------------------------------------------------------------------------
Command:            head/target/release/tree-sitter-stack-graphs-typescript index -D head.sqlite --max-file-time=30 --hide-error-details -- head/data/typescript_benchmark
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 head-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
1.702^                                            :::##                       
     |                                            :  #                        
     |                                            :  #                        
     |                                            :  #                       @
     |                                          :::  #                   ::::@
     |                                       :::: :  #                   :   @
     |                                       : :: :  #                   :   @
     |                                       : :: :  #                   :   @
     |                                 @   ::: :: :  #          :    :::::   @
     |                   @@           :@ : : : :: :  #        :::  :::   :   @
     |              @::::@    ::     ::@:::: : :: :  #        :::::: :   :   @
     |             @@: ::@ : ::     :::@:::: : :: :  #      :::::::: :   :   @
   0 +----------------------------------------------------------------------->Gi
     0                                                                   74.08

Copy link

Performance Summary

Comparing base 1b01a8c with head e743a67 on typescript_benchmark benchmark. 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 index -D base.sqlite --max-file-time=30 --hide-error-details -- base/data/typescript_benchmark
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 base-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
1.702^                                            :::#                        
     |                                            :  #                        
     |                                            :  #                        
     |                                            :  #                    ::::
     |                                          :::  #                   ::: :
     |                                         :: :  #                   ::: :
     |                                       :::: :  #                   ::: :
     |                                       : :: :  #                   ::: :
     |                                @@   ::: :: :  #        :::    ::::::: :
     |                   @           :@@   : : :: :  #        :::  :::   ::: :
     |             ::: ::@    :      :@@:::: : :: :  #       ::::@:: :   ::: :
     |            @::::::@ : :: :   ::@@: :: : :: :  #       ::::@:: :   ::: :
   0 +----------------------------------------------------------------------->Gi
     0                                                                   74.10
After
--------------------------------------------------------------------------------
Command:            head/target/release/tree-sitter-stack-graphs-typescript index -D head.sqlite --max-file-time=30 --hide-error-details -- head/data/typescript_benchmark
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 head-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
1.702^                                            @@@#                        
     |                                            @  #                        
     |                                            @  #                        
     |                                            @  #                    ::::
     |                                          ::@  #                    @  :
     |                                       :::: @  #                    @  :
     |                                       : :: @  #                ::::@  :
     |                                       : :: @  #                :   @  :
     |                                @@   ::: :: @  #          :     :   @  :
     |                                @@  :: : :: @  #        :::   :::   @  :
     |              :@  :      ::    :@@:::: : :: @  #       :: :@@:: :   @  :
     |              :@:::: :  ::    ::@@: :: : :: @  #       :: :@ :: :   @  :
   0 +----------------------------------------------------------------------->Gi
     0                                                                   73.69

Copy link

Performance Summary

Comparing base 1b01a8c with head 5a63def on typescript_benchmark benchmark. 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 index -D base.sqlite --max-file-time=30 --hide-error-details -- base/data/typescript_benchmark
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 base-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
1.702^                                            :::#                        
     |                                            :  #                        
     |                                            :  #                        
     |                                            :  #                    ::::
     |                                          :::  #                   ::  :
     |                                       :::: :  #                   ::  :
     |                                       : :: :  #                   ::  :
     |                                      :: :: :  #                   ::  :
     |                                 @   @:: :: :  #         ::    ::::::  :
     |                   @           ::@ : @:: :: :  #        :::  :::   ::  :
     |             @:::::@    ::     ::@:::@:: :: :  #        :::::: :   ::  :
     |            @@::: :@ :::: : : :::@:::@:: :: :  #       ::::::@ :   ::  :
   0 +----------------------------------------------------------------------->Gi
     0                                                                   74.09
After
--------------------------------------------------------------------------------
Command:            head/target/release/tree-sitter-stack-graphs-typescript index -D head.sqlite --max-file-time=30 --hide-error-details -- head/data/typescript_benchmark
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 head-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
1.702^                                            :::#                        
     |                                            :  #                        
     |                                            :  #                        
     |                                            :  #                    ::::
     |                                          :::  #                   ::  :
     |                                       :::: :  #                   ::  :
     |                                       : :: :  #                :::::  :
     |                                      :: :: :  #                :  ::  :
     |                                 @   ::: :: :  #          :     :  ::  :
     |                               :@@  :::: :: :  #        :@:   @@:  ::  :
     |              @  :::    :     ::@@ ::::: :: :  #       ::@::::@ :  ::  :
     |             @@::::: @@:: : : ::@@:::::: :: :  #      :::@::::@ :  ::  :
   0 +----------------------------------------------------------------------->Gi
     0                                                                   73.77

@BekaValentine BekaValentine merged commit c16b8cf into main Jan 29, 2024
12 checks passed
@BekaValentine BekaValentine deleted the add-python branch January 29, 2024 18:04
BekaValentine added a commit that referenced this pull request Feb 7, 2024
This reverts commit c16b8cf, reversing
changes made to 8e99165.
BekaValentine added a commit that referenced this pull request Feb 7, 2024
This reverts commit c16b8cf, reversing
changes made to 8e99165.
BekaValentine added a commit that referenced this pull request Feb 7, 2024
This reverts commit c16b8cf, reversing
changes made to 8e99165.
BekaValentine added a commit that referenced this pull request Feb 7, 2024
This reverts commit c16b8cf, reversing
changes made to 8e99165.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants