Skip to content

Adjust variable type#294

Open
MiKKiYang wants to merge 1 commit intosecretflow:mainfrom
MiKKiYang:fix_2
Open

Adjust variable type#294
MiKKiYang wants to merge 1 commit intosecretflow:mainfrom
MiKKiYang:fix_2

Conversation

@MiKKiYang
Copy link
Contributor

  1. GraphBuilder中的node2inputs定义为局部变量使用即可,方法执行结束立即回收,满足最小可见性原则的同时无需GC时随对象实例回收,减少对象长期持有的内存

  2. 其余修改中通过Spring注入的不可变对象增加final修饰,防止后续维护时意外修改字段引用,保护对象完整性

Signed-off-by: MikkiYang <hecy7@asiainfo.com>
Copy link
Collaborator

@wenyuanhust wenyuanhust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看上去OK,请问修改后,有打包实际运行测试吗

@MiKKiYang
Copy link
Contributor Author

看上去OK,请问修改后,有打包实际运行测试吗

@wenyuanhust

我们内部有allinone部署的环境,每次更新(无论是secretPad、kuscia、 secretflow、 spu)都会重做镜像或对应库进行测试,并运行如下工作流。

image

Copy link
Collaborator

@wenyuanhust wenyuanhust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants