[Bf-python] Blender and lists

Campbell Barton cbarton at metavr.com
Wed Jul 25 00:41:46 CEST 2007


Ken Hughes wrote:
> Campbell Barton wrote:
>> Hi, we cant get through all the topics for discussion at meetings so the 
>> mailing list can be used for discussion.
>>
>> In the Blender-Py API I have written a generic subtyped list that can be 
>> used for small lists materials and scriptlinks.
>>   
> One point I didn't understand in the last meeting:
> 
> You mention "small lists"; is this implying that this structure
> 1) would only be used for sequence-type objects which always have a 
> small number of items (like materials assigned to a mesh), or
> 2) could be used for any sequence-type objects (like, say, mesh 
> vertices), but only when the number of verts is small; the rest of the 
> time some different structure is used.
> 
> I assume you mean 1)
> 
> Ken

Yep I mean 1)
  lists that usually arnt that big. which is not always so easy to 
define  since scriptlinks, and modifiers have no limit.
But I think its safe to say that anyone with 100+ scriptlinks 
experiencing some slowness can live with it.

My guess is it would probably be 1000+ where would get to realy 
noticeable slowdowns that could effect usability of a script.

Keep in mind many people use "ob.data.name" and dont notice its 
converting 10000's of elements to NMesh each time.



More information about the Bf-python mailing list