Changeset 3308

Show
Ignore:
Timestamp:
05/03/08 16:50:38 (4 months ago)
Author:
dgollub
Message:

Remove xmlformat validation since this is quite expensive. With every
call the schema for the xmlformat-$objtype get parsed. To avoid
multiple parsing of the same schema over and over again the OpenSync?
engine should do the validation and intialize and parse the xmlformat-
schema only once.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • format-plugins/vformat/src/xmlformat-vcard.c

    r3127 r3308  
    10581058        g_free(str); 
    10591059 
    1060         if (osync_xmlformat_validate(xmlformat) == FALSE) 
    1061                 osync_trace(TRACE_INTERNAL, "XMLFORMAT CONTACT: Not valid!"); 
    1062         else 
    1063                 osync_trace(TRACE_INTERNAL, "XMLFORMAT CONTACT: VAILD"); 
    1064  
    10651060        vformat_free(vcard); 
    10661061         
  • format-plugins/vformat/src/xmlformat-vevent.c

    r3139 r3308  
    696696        g_free(str); 
    697697 
    698         if (osync_xmlformat_validate(xmlformat) == FALSE) 
    699                 osync_trace(TRACE_INTERNAL, "XMLFORMAT EVENT: Not valid!"); 
    700         else 
    701                 osync_trace(TRACE_INTERNAL, "XMLFORMAT EVENT: VAILD"); 
    702  
    703  
    704698        vformat_free(vcalendar); 
    705699         
  • format-plugins/vformat/src/xmlformat-vnote.c

    r2795 r3308  
    8080        g_free(str); 
    8181         
    82         if (osync_xmlformat_validate(xmlformat) == FALSE) 
    83                 osync_trace(TRACE_INTERNAL, "XMLFORMAT NOTE: Not valid!"); 
    84         else 
    85                 osync_trace(TRACE_INTERNAL, "XMLFORMAT NOTE: Valid!"); 
    86  
    8782        vformat_free(vnote); 
    8883        osync_trace(TRACE_EXIT, "%s: TRUE", __func__);