Set.insert vs array << x unless array.include?(x)
19 posts
• Page 1 of 1
Re: Set.insert vs array << x unless array.include?(x)....or make all of your Point3d's into arrays so they will sort!/uniq! etc as arrays...
TIG
Re: Set.insert vs array << x unless array.include?(x)
But is the overhead of converting the Point3d's into arrays and uniq! faster than using a Set? Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
Re: Set.insert vs array << x unless array.include?(x)Who knows ?
Time for you to do another test... TIG
Re: Set.insert vs array << x unless array.include?(x)I probably don't know what I am doing, but I ran the following test, and obtained the attached results. I typically use array.push variable, and don't understand the situations when the other examples might be used. Btw, when I applied the other forms to my app, it failed in ways that leave me to believe that those forms are data sensitive. Can anyone explaine to a Ruby beginner what's up?
SketchUcation One-Liner AdvertsVertex Tools for SketchUp. Take control over each vertex with this vertex editor for SketchUp.
Premium Members get 20% discount!
19 posts
• Page 1 of 1
|