[rum-discuss] Performance

0 views
Skip to first unread message

Michael Brickenstein

unread,
May 4, 2010, 8:53:42 AM5/4/10
to rum-discuss
Hi!

Since a long time, I suspect, that the number of register that routes
might be a problem for the RUM performance. My Profiler seems to
indicate, that rum, spents 40%
of its time in
route.py:265(makeregexp) <-
27560 calls (for 5 web requests).
and the underlying functions

Can anyone comment the following numbers please?

Is that indeed much? Might that be the reason for bad performance?

for (k,v) in app_globals.admin_app.router.mapper.maxkeys.iteritems():
print len(v)
573
332
573
1
548
1
548
690
307
332
332
387
573
307

Cheers,
Michael

--
You received this message because you are subscribed to the Google Groups "rum-discuss" group.
To post to this group, send email to rum-d...@googlegroups.com.
To unsubscribe from this group, send email to rum-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rum-discuss?hl=en.

Michael Brickenstein

unread,
May 5, 2010, 3:39:01 AM5/5/10
to rum-discuss
Hi!
While trying to upgrade to routes 1.12 (which has some new regex
builder feature),
I got the following stacktrace,

I guess, that's also about our many routes...:

Cheers,
Michael

File '/mnt/hgfs/programming/rum/rum/wsgiapp.py', line 335 in dispatch
match = self.router.dispatch(request.environ)
File '/mnt/hgfs/programming/rum/rum/router.py', line 304 in dispatch
result = adapt_call(self.mapper.routematch,url=request.path_info,
environ=environ)
File '/mnt/hgfs/programming/rum/rum/util.py', line 59 in adapt_call
return func(**kw)
File '/home/michael/owpdbenv/lib/python2.6/site-packages/Routes-1.12.1-
py2.6.egg/routes/mapper.py', line 690 in routematch
result = self._match(url, environ)
File '/home/michael/owpdbenv/lib/python2.6/site-packages/Routes-1.12.1-
py2.6.egg/routes/mapper.py', line 615 in _match
self.create_regs()
File '/home/michael/owpdbenv/lib/python2.6/site-packages/Routes-1.12.1-
py2.6.egg/routes/mapper.py', line 560 in create_regs
self._create_regs(*args, **kwargs)
File '/home/michael/owpdbenv/lib/python2.6/site-packages/Routes-1.12.1-
py2.6.egg/routes/mapper.py', line 595 in _create_regs
self._master_regexp = re.compile(regexp)
File '/home/michael/owpdbenv/lib/python2.6/re.py', line 190 in compile
return _compile(pattern, flags)
File '/home/michael/owpdbenv/lib/python2.6/re.py', line 243 in
_compile
p = sre_compile.compile(pattern, flags)
File '/home/michael/owpdbenv/lib/python2.6/sre_compile.py', line 517
in compile
"sorry, but this version only supports 100 named groups"
AssertionError: sorry, but this version only supports 100 named groups

Michael Brickenstein

unread,
May 10, 2010, 11:35:49 AM5/10/10
to rum-discuss
Hi!
I am working on a largely improved version.
Since still some tests fail, I uploaded it only to bitbucket and not
into the official
rum repository.
http://bitbucket.org/brickenstein/rum
Cheers,
Michael
Reply all
Reply to author
Forward
0 new messages