[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1406.0. "Multiple widget fetch query" by NEARLY::GOODENOUGH () Mon Sep 11 1989 08:12

    If I use DwtFetchWidget to fetch multiple instance of the same widget,
    is it copied in memory, or is there a file access involved each time?
    
    Jeff.

T.RTitleUserPersonal
Name
DateLines
1406.1Depends...LEOVAX::TREGGIARIMon Sep 11 1989 09:177
    It depends.  DRM uses 8 4K buffers in which it retains records that
    it has read.  If the record containing the widget definition is still
    in one of those buffers, there will be no file access.  If the buffer
    has been re-used, then there will be.
    
    Leo

1406.2NEARLY::GOODENOUGHMon Sep 11 1989 10:2411
    I assumed there must be some buffering, but it still takes tens of
    seconds to fetch and load data for ten instances of a widget which
    controls 4 push buttons (2 are pixmaps) and a label.  From a PCA run I
    did, the time appears to be spent in a routine which does the Fetch and
    also an XtSetValues for the top attachment.  The creation callback time
    (6 per instance) and time spent loading the button/label values appear to
    be trivial.  That's why I thought the Fetch must be the culprit.
    
    Thanks,
    Jeff.