Skip to content

rvalue ref / C-string upper #144

Closed
TravelMapping/DataProcessing
#409

Description

@yakra

in mark_chopped_route_segments and mark_connected_route_segments
rvalue refs don't seems to help all that much (elsewhere, at least)

  • taskscale lct* (2<->3; 2A<->3A specifically),
    include 3A's diffs if rvalue refs actually help
    BT lab1 lab1.5 lab2 lab3
    ! no -0.0052 no -0.1268
  • Where else is std::string upper(std::string str) still used?
    • Comment out the definition and see what breaks to find it fast. :)
    • Nah, just search. Very few occurrences.
    • Only Route ctor.
    • Did && help?
      BT lab1 lab1.5 lab2 lab3
      ! no no no -0.0152
    • Candidate to change over? Eh. Only 1.8s on BiggaTomato. But why not!
  • then try replacing entirely:
    set up the std::string, then upper its .data() in situ

Activity

  1. changed the title [-]C-string-based upper[/-] [+]rvalue ref / C-string upper[/+] on Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions