Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

what are those svv, svvc, svvf objects?

 [1/4] from: semseddinm:bircom at: 19-Mar-2010 9:51


what are those svv, svvc, svvf objects in R2/View? I never heard them, never saw them in any document? I saw them in Nick's no-rebol-in-title-bar.r script: http://www.rebol.org/view-script.r?script=no-rebol-in-title-bar.r They hold default values for VID?

 [2/4] from: dhsunanda:gm:ail at: 19-Mar-2010 8:04


> what are those svv, svvc, svvf objects in R2/View?
Shorthand names for the various System data structures that support View, eg:
>> system/view/vid = svv
== true Sunanda

 [3/4] from: santilli:gabriele:g:mail at: 19-Mar-2010 11:49


2010/3/19 Sunanda <dhsunanda-gmail.com>:
> Shorthand names for the various System data structures that support > View, eg: > > =C2=A0>> system/view/vid = svv > =C2=A0 =C2=A0 == true
And the reason for their existence is not just typing speed...
>> s: now/precise loop 10'000'000 [system/view/vid] difference now/precise s
== 0:00:02.926162
>> s: now/precise loop 10'000'000 [system/view/vid] difference now/precise s
== 0:00:02.92684
>> s: now/precise loop 10'000'000 [svv] difference now/precise s
== 0:00:00.325787
>> s: now/precise loop 10'000'000 [svv] difference now/precise s
== 0:00:00.300893 Regards, Gabriele.

 [4/4] from: semseddinm:bircom at: 19-Mar-2010 13:43


Wow! A huge speed difference, thanks for explaining it. It is correct for all paths,
>> system/view/resize-border
== 4x4
>> s: now/precise loop 10'000'000 [system/view/resize-border] difference >> now/precise s
== 0:00:02.906
>> s: now/precise loop 10'000'000 [svl] difference now/precise s
== 0:00:00.329