Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #13821

Various optimisations to Stem

Various optimisations to stem to make stem.descriptor.parse_file() faster.

Individual patches attached.

Things learned from doing this:

  • cProfile and line_profiler are cool tools used together.
  • One should compile regexp outside of functions and loops.
  • isinstanceof() is slow. Maybe trust later functions to do the right thing(TM) and catch exception when type is wrong
  • Boringly Python's datetime.datetime.strptime() is slow. Replaced with regexp.

Trac:
Username: oherrala

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking