apache / incubator-fury

A blazingly fast multi-language serialization framework powered by JIT and zero-copy.

Home Page:https://fury.apache.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Java]We can use the new features in JDK17 to improve performance

heliang666s opened this issue · comments

Is your feature request related to a problem? Please describe.

图片

  • When judging the type of variable,use many if else.This is not aesthetically pleasing and at the same time mediocre in performance

Describe the solution you'd like

We can use the new feature of the jdk17:Pattern Matching for switch.

Additional context

If you agree it,please assign me,I can solve it.

Hi @heliang666s , Fury needs to be compatible with jdk 1.8, if we use Pattern Matching for switch, this will break this compatibility.