fredrikekre / Runic.jl

A code formatter for Julia with rules set in stone.
MIT License
98 stars 3 forks source link

Performance improvements #28

Open fredrikekre opened 2 months ago

fredrikekre commented 2 months ago

I haven't really focused on performance but it seems like the no-op performance is good enough that it isn't annoying at least. If you have adopted Runic for the codebase then any incremental runs will only be on small edits or commits.

However, it doesn't hurt to be faster. Here are a list of files I have noticed takes quite a while to format and can be used for benchmarking:

slow_files = [
    ".julia/packages/ColorSchemes/2Fr9E/data/colorcetdata.jl",
    ".julia/packages/ColorSchemes/jilF8/data/scicolor.jl",
    ".julia/packages/Contour/Ezecs/test/testdata.jl",
    ".julia/packages/DataFrames/3mEXm/src/other/precompile.jl",
    ".julia/packages/OrdinaryDiffEq/0tf1M/src/tableaus/rkc_tableaus.jl",
    ".julia/packages/PlotUtils/35TGG/src/gradients/cmocean.jl",
]