4 ms·
Wow, the function naming alone is terrible. for i in range(len(path_parts) - 1, -1, -1): if not path_parts[i] in resource_types and path_parts[i] i
by ayrx 12y ago
Wow, the function naming alone is terrible.
for i in range(len(path_parts) - 1, -1, -1):
if not path_parts[i] in resource_types and path_parts[i] in resource_tokens:
return resource_tokens[path_parts[i]]
This bit of iteration is painful to look at as well.
- jkldotio 12y agoSome optimisations to get it to web-scale on TempleOS were obviously necessary.