Skip to content

TTFX is slow #15

@asinghvi17

Description

@asinghvi17
 @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions