Please sign in to comment.
Use a simple buffer manager for better performance in single core mac…
- Loading branch information...
Showing with 45 additions and 2 deletions.
|@@ -0,0 +1,28 @@|
|+# coding: utf-8|
|+# Copyright (C) 2011 Lucas Alvares Gomes <firstname.lastname@example.org>|
|+# This program is free software; you can redistribute it and/or modify|
|+# it under the terms of the GNU General Public License as published by|
|+# the Free Software Foundation; either version 2 of the License, or|
|+# (at your option) any later version.|
|+# This program is distributed in the hope that it will be useful,|
|+# but WITHOUT ANY WARRANTY; without even the implied warranty of|
|+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the|
|+# GNU General Public License for more details.|
|+# You should have received a copy of the GNU General Public License|
|+# along with this program; if not, see <http://www.gnu.org/licenses/>.|
|+from carbono.buffer_manager.dummy_manager import DummyManager|
|+ def __init__(self, read_callback, job_callback):|
|+ DummyManager.__init__(self, read_callback)|
|+ self.job = job_callback|
|+ def put(self, data):|
|+ worked_data = self.job(data)|