简体   繁体   English

JGoodies绑定是否会在EDT上占用过多时间?

[英]Does JGoodies binding take up too much time on the EDT?

I am using JGoodies binding for my swing components. 我将JGoodies绑定用于我的挥杆组件。 I have a demanding realy time display in my program that won't update visually when JGoodies binding is turned on. 我的程序中要求实时显示,打开JGoodies绑定时不会进行视觉更新。 Is there a way to have the binding not hog the EDT thread? 有没有办法使绑定不占用EDT线程?

No, bindings are almost certainly not the cause of your problem - all they do is connect things. 不,绑定几乎肯定不是导致问题的原因-它们所做的只是连接事物。 If indeed execution is spending a lot of time firing binding events, you should figure out what is triggering the events. 如果确实执行花费大量时间来触发绑定事件,则应找出触发事件的原因。

I recommend running your program in a profiler to see where in the code CPU is used (if you're seeing high CPU). 我建议在分析器中运行程序,以查看在代码CPU中使用的位置(如果看到的是CPU过多)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM