We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
期望利用scala AnyVal(值对象)可以优化在CommonRdbmsReader中迭代ResultSet对象中的记存放到Record中,不需要每次为特定col类型生成专门的值对象,从而可以大大减轻VM垃圾回收的工作量以提高执行效率。
代码已经提交在 https://github.com/qlangtech/DataX/tree/scala ,不过从试验效率来看并没有创建值对象的步骤: 通过javap反编译scala代码 https://github.com/qlangtech/DataX/blob/scala/plugin-rdbms-util/src/main/scala/com/alibaba/datax/plugin/rdbms/reader/CommonRdbmsReader.scala
666: dup 667: aload 12 669: invokespecial #90 // Method com/alibaba/datax/common/scala/element/StringColumn."<init>":(Ljava/lang/String;)V 672: invokeinterface #96, 2 // InterfaceMethod com/alibaba/datax/common/scala/element/Record.addColumn:(Lcom/alibaba/datax/common/scala/element/Column;)V 677: iload 10 679: iconst_1
还是会去创建StringColumn对象,不知道是因为什么,有待进一步研究
StringColumn
The text was updated successfully, but these errors were encountered:
No branches or pull requests
期望利用scala AnyVal(值对象)可以优化在CommonRdbmsReader中迭代ResultSet对象中的记存放到Record中,不需要每次为特定col类型生成专门的值对象,从而可以大大减轻VM垃圾回收的工作量以提高执行效率。
代码已经提交在 https://github.com/qlangtech/DataX/tree/scala ,不过从试验效率来看并没有创建值对象的步骤:
通过javap反编译scala代码 https://github.com/qlangtech/DataX/blob/scala/plugin-rdbms-util/src/main/scala/com/alibaba/datax/plugin/rdbms/reader/CommonRdbmsReader.scala
还是会去创建
StringColumn
对象,不知道是因为什么,有待进一步研究The text was updated successfully, but these errors were encountered: