EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

SKILL command: setof , exists

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - Cadence - SKILL command: setof , exists

I-F AB
Guest

Thu Jul 28, 2011 8:29 am   



Hi,

I have a large data list containing lists of which I would want to
process.
I'm wondering which of the codes below is more efficient:

caar(setof(x LargeLongList cadr(x)=="metal" ))
caar(exists(x LargeLongList cadr(x)=="metal" ))

I'm not sure how to check the runtime with Virtuoso's Debugger.
Can anyone enlighten me?

Thanks,
I-FAB

Marcel Preda
Guest

Sat Jul 30, 2011 5:37 pm   



On Jul 28, 9:29 am, I-F AB <cop0...@gmail.com> wrote:
Quote:
Hi,

I have a large data list containing lists of which I would want to
process.
I'm wondering which of the codes below is more efficient:

 caar(setof(x    LargeLongList   cadr(x)=="metal" ))
 caar(exists(x    LargeLongList   cadr(x)=="metal" ))

I'm not sure how to check the runtime with Virtuoso's Debugger.
Can anyone enlighten me?

Thanks,
I-FAB

Hi there,

"exists" is definitively faster than "setof" .
"exists" stops when find first element that satisfy condition.
"setof" will scan all the list and returns all the elemets that
satisfy condition.

Best Regards,
Marcel

I-F AB
Guest

Wed Aug 03, 2011 2:30 am   



Quote:
Hi there,

"exists" is definitively faster than "setof" .
"exists" stops when find first element that satisfy condition.
"setof" will scan all the list and returns all the elemets that
satisfy condition.

Best Regards,
Marcel

Ah yes, thanks. That makes perfect sense.
BTW, google seems to be very slow in updating threads here - has
anyone got a clue why?

elektroda.net NewsGroups Forum Index - Cadence - SKILL command: setof , exists

Ask a question - edaboard.com

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony