Get the latest tech news

A curious case of O(N^2) behavior which should be O(N) (2023)


A curious case of O(N^2) behavior which should be O(N) - blender_slow.md

Because the list is sorted and Blender assumes all objects created later have higher extension number (i.e., alphebatically bigger), the search is done backwards starting from the end. Instead of changing the general name mangling function Blender uses, I made some modification directly to the USD import module: I count the total number of objects in a USD file and get the width of total digits, then for each unique basename, assign a new name with the format basename_00XXX where XXX is their index and use 0 padding so they all have the same number of digits. There may be room to further cut down some time (in another post maybe) such that the whole Blender USD import pipeline matches Omniverse 2023.1.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of behavior

behavior

Photo of curious case

curious case

Photo of O(N^2

O(N^2

Related news:

News photo

The curious case of Nebius, the publicly traded AI infrastructure ‘startup’

News photo

Phys.org: Physicists uncover behavior in quantum superconductors that provides a new level of control

News photo

SAP’s CTO Mueller to Leave Over ‘Inappropriate’ Behavior