mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Improve memory usage by making Thread a ref object
This commit is contained in:
parent
640bb2fadf
commit
92e3df411f
4 changed files with 7 additions and 4 deletions
|
|
@ -88,6 +88,7 @@ proc parseTweet*(node: XmlNode): Tweet =
|
|||
|
||||
proc parseThread*(nodes: XmlNode): Thread =
|
||||
if nodes == nil: return
|
||||
result = Thread()
|
||||
for n in nodes.filterIt(it.kind != xnText):
|
||||
let class = n.attr("class").toLower()
|
||||
if "tombstone" in class or "unavailable" in class:
|
||||
|
|
|
|||
Loading…
Reference in a new issue