Skip to content
Snippets Groups Projects
  • Pierre-Yves David's avatar
    d7522f983f37
    bookmarks: explicitly convert to 'node' during initialization · d7522f983f37
    Pierre-Yves David authored
    We know the content of the file is supposed to be full hex. So we can do the
    translation ourselves and directly check if the node is known.
    
    As nice side effect we now have proper error handling for invalid node value.
    
    Before:
    ! wall 0.021580 comb 0.020000 user 0.020000 sys 0.000000 (best of 134)
    
    After:
    ! wall 0.009342 comb 0.010000 user 0.010000 sys 0.000000 (best of 302)
    d7522f983f37
    History
    bookmarks: explicitly convert to 'node' during initialization
    Pierre-Yves David authored
    We know the content of the file is supposed to be full hex. So we can do the
    translation ourselves and directly check if the node is known.
    
    As nice side effect we now have proper error handling for invalid node value.
    
    Before:
    ! wall 0.021580 comb 0.020000 user 0.020000 sys 0.000000 (best of 134)
    
    After:
    ! wall 0.009342 comb 0.010000 user 0.010000 sys 0.000000 (best of 302)