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

TTFX is slow #15

Open
asinghvi17 opened this issue May 7, 2024 · 0 comments
Open

TTFX is slow #15

asinghvi17 opened this issue May 7, 2024 · 0 comments

Comments

@asinghvi17
Copy link
Member

 @time_imports using NaturalEarth
      1.2 ms  Extents
      2.9 ms  GeoFormatTypes
      3.8 ms  GeoInterface
      0.3 ms  PrecompileTools
      5.9 ms  RecipesBase
      0.4 ms  GeoInterfaceRecipes
               ┌ 0.0 ms Parsers.__init__()
     28.4 ms  Parsers 36.75% compilation time
      3.7 ms  StructTypes
     19.5 ms  JSON3
      0.4 ms  DataValueInterfaces
      0.5 ms  DataAPI
      0.2 ms  IteratorInterfaceExtensions
      0.2 ms  TableTraits
      2.2 ms  OrderedCollections
      5.2 ms  Tables
     62.3 ms  GeoJSON
      0.5 ms  Scratch
               ┌ 2.1 ms NaturalEarth.__init__()
      7.4 ms  NaturalEarth

julia> @time naturalearth("admin_0_countries", 10)
  2.445488 seconds (3.90 M allocations: 229.510 MiB, 1.94% gc time, 38.96% compilation time)
FeatureCollection with 258 Features

julia> @time naturalearth("admin_0_countries", 10)
  0.065051 seconds (270.78 k allocations: 38.551 MiB, 10.15% gc time)
FeatureCollection with 258 Features

Probably needs:

  • precompile statements in NaturalEarth.jl
  • precompile statements in Parsers.jl/GeoJSON.jl
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

No branches or pull requests

1 participant