Revision: a07a37e43e48
Branch: default
Author: Mikko Korpela <mikko.korp...@gmail.com>
Date: Thu Aug 29 07:31:42 2013 UTC
Log: model.keyword: Use intern to reduce memory footprint
http://code.google.com/p/robotframework/source/detail?r=a07a37e43e48
Modified:
/src/robot/model/keyword.py
=======================================
--- /src/robot/model/keyword.py Wed Aug 28 12:46:38 2013 UTC
+++ /src/robot/model/keyword.py Thu Aug 29 07:31:42 2013 UTC
@@ -35,14 +35,16 @@
#: :class:`~.testcase.TestCase` that contains this keyword.
self.parent = None
#: Keyword name.
- self.name = name
+ self.name = intern(name)
#: Keyword documentation.
- self.doc = doc
+ self.doc = intern(doc)
#: Keyword arguments, a list of strings.
self.args = args
#: 'SETUP', 'TEARDOWN' or 'KW'.
- self.type = type
+ self.type = intern(type)
#: Keyword timeout.
+ if isinstance(timeout, basestring):
+ timeout = intern(timeout)
self.timeout = timeout
#: Keyword messages, a list of
#: :class:`~robot.model.message.Messages` instances.
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.