vertx-sql-client icon indicating copy to clipboard operation
vertx-sql-client copied to clipboard

Branch free parse digits

Open franz1981 opened this issue 4 months ago • 1 comments

It contains 3 improvements (unfinished):

  • O(1) collation lookup table
  • branchless/batchy parse digits
  • NOT YET STARTED: https://github.com/eclipse-vertx/vertx-sql-client/blob/9073da6171b7688a7491398522dcb6c454bd5960/vertx-mysql-client/src/main/java/io/vertx/mysqlclient/impl/datatype/DataTypeCodec.java#L61 exceed MinJumpTableSize (see https://stackoverflow.com/questions/44988841/force-tableswitch-instead-of-lookupswitch for more info): we should find a way to reduce the number of branches here or find a different way to perform it, because the branch predictor AND the JIT doesn't enjoy it

franz1981 avatar Apr 08 '24 09:04 franz1981