Remember me

Lost Password?

Register now!


Who's Online
78 user(s) are online (57 user(s) are browsing Forums)

Members: 0
Guests: 78


Support us!


Report message:*

Re: Is Forbid() needed for SetMethod()?

Subject: Re: Is Forbid() needed for SetMethod()?
by Severin on 2019/4/9 2:31:19

Forbid() and permit() are evil, do not use them unless absolutly required and keep any code between them as short as possible.

If anyone remembers XStream the proposed AHI replacement, that was eventually abandoned due to the amount of forbid()/permit() calls being used system wide which caused XStream to stutter and click. Since then a lot of work has been done to remove them from OS4.

So basically you have to use them for OS3 but can usually avoid them for OS4 unless specificly told to use them eg. getting a list on currently open screens or windows where something opening or closing a screen or window in mid scan would cause havoc.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project