You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed this while reading the code trying to comment it.
Lines 128-136 checks if the part has been cached. If it hasn't, it reads and caches it. But what happens if it is cached? That condition is not handled. Instead, it simply returns the myDef object constructed above which does not appear to be all the information needed.
Now, maybe I'm missing something, but it seems as if we only build the cache and never access it. In that case, it looks like the case needs to be handled and assign some key of myDef (sorry, can't figure out which) to self.__parts[myDef["partId"]] to take advantage of the cache.
The text was updated successfully, but these errors were encountered:
@le717 Since the parts are referred to by name, the only check needed is to see if the part is not already cached. If it is, then nothing needs to change since the partId is already referenced by name.
@le717 The idea is that parts never have to be "retrieved" until parsing the output. It might make sense if you take a closer look at the output format.
All the parser has to know is that a part is cached.
Noticed this while reading the code trying to comment it.
Lines 128-136 checks if the part has been cached. If it hasn't, it reads and caches it. But what happens if it is cached? That condition is not handled. Instead, it simply returns the
myDef
object constructed above which does not appear to be all the information needed.Now, maybe I'm missing something, but it seems as if we only build the cache and never access it. In that case, it looks like the case needs to be handled and assign some key of
myDef
(sorry, can't figure out which) toself.__parts[myDef["partId"]]
to take advantage of the cache.The text was updated successfully, but these errors were encountered: