Uniface User Forum

 View Only
  • 1.  Performance for le clear in Uniface 10.4

    Posted 12-05-2021 04:09
    We are trying to migrate from U9.7 to U10.4 since several weeks.
    The last problem we have is a very bad performance of the clear proc in our frms.
    We use the function $paintedfieldproperties to construct our grid with a "Sheet" aspect like the screenshot below.
    After a retrieve for example, when the screen is full of data , now, when we do the classic "clear" process  to empty the screen as usual,
    the lines goes empty but very slowly, line by line...
    It is not at all the case with Uniface 9.7, actually in production mode.
    This gives a very bad user experience and may jeopardize our migration to U10.
    Is there a way to improve this clear process ?
    Thank you very much for your help
    PS: we are testing U 10.4.01.003
    example of aspect for our grids in our Uniface applicatitions


    ------------------------------
    Cabero Daniel
    Lead of IT R&D Lidea
    Euralis Semences
    MONDONVILLE FR
    ------------------------------


  • 2.  RE: Performance for le clear in Uniface 10.4

    Posted 12-05-2021 04:39
    Edited by Gianni Sandigliano 12-05-2021 04:41

    Ciao Daniel,

    my gotfeel reaction is: what could be happening here? clear instruction is not an issue for me since U5!

    Uniface screen driver is always painting on screen from bottom to top; in some cases I have seen the runtime clearing row by row but always fast enough to not be considered an issue.

    Usually my use case for $paintedfieldproperties is to put a button on top of a label or to move a field in a specific position. I never used it to paint a whole (and probably complex!) grid.

    The picture you've posted does NOT seems to require a lot of "... function $paintedfieldproperties to construct our grid with a "Sheet" aspect like the screenshot below ..." because a Uniface form with occurrences repetition is already a "grid with a "Sheet" aspect".

    My thoughts leads to my questions:
    - what use for $paintedfieldproperties are you coding?
    - in your <CLEAR> action the performance issue is verified for a simple clear instruction or do you have a more complex coding for that?

    Regards,
    Gianni


    ------------------------------
    Gianni Sandigliano
    IT
    ------------------------------



  • 3.  RE: Performance for le clear in Uniface 10.4

    Posted 12-05-2021 05:57
    Hello Gianni,
    Thanks for your very quick answer ! :)
    > For the first point, we use $paintedfieldproperties for each field, because each user can place (or not) each field in the column he wants.
    Some users need to work on some info, others on some others.
    After that we store the template of the positions of each field of the grid  for each user.  (& so on for all the grids)

    > Our clear instruction is called with an included proc where there is with some more code (for messages for example) but nothing tremendous.
    Anyway, exactly the same code has not the same behavior in 9.7 because the screen goes blanck immediatly and there is not this effect "clear line by line"

    Very strange .. I 'm afraid  that will be a complicate thing to fix
    Best Regards
    Daniel







    ------------------------------
    Cabero Daniel
    Lead of IT R&D Lidea
    Euralis Semences
    MONDONVILLE FR
    ------------------------------



  • 4.  RE: Performance for le clear in Uniface 10.4

    Posted 12-05-2021 06:19

    Ciao Daniel,

    IMHO because of your use case Uniface runtime if forced to clear fields one by one and considering the grid is including many fields it is requiring time.

    If effectively U9 does not shown same (bad) behaviour, being in your shoes I would open a case with support about performance regression.

    Have a nice sunday!

    Gianni



    ------------------------------
    Gianni Sandigliano
    IT
    ------------------------------



  • 5.  RE: Performance for le clear in Uniface 10.4

    Posted 12-05-2021 06:29
    Merci beaucoup pour tes conseils Gianni !
    Have a nice sunday too
    Daniel

    ------------------------------
    Cabero Daniel
    Lead of IT R&D Lidea
    Euralis Semences
    MONDONVILLE FR
    ------------------------------



  • 6.  RE: Performance for le clear in Uniface 10.4

    ROCKETEER
    Posted 12-06-2021 03:20

    Could you try if disabling the PaintCache INI-setting resolves the performance issue?

    [upi]
    PaintCache= False

    By default the mentioned setting is enabled ("True").

    I hope this helps.

    Daniel



    ------------------------------
    Daniel Iseli
    Principal Technical Support Engineer
    Uniface Services
    Rocket Software, Switzerland
    ------------------------------



  • 7.  RE: Performance for le clear in Uniface 10.4

    Posted 12-08-2021 09:47
    Hello Daniel

    Effectively , that seems better with paintcache set to false in the INI
    I have to test deeper to see if there are no collateral effects...
    Thanks a lot for this advice !
    Best Regards
    Daniel

    ------------------------------
    Cabero Daniel
    Lead of IT R&D Lidea
    Euralis Semences
    MONDONVILLE FR
    ------------------------------