Commit graph

79 commits

Author SHA1 Message Date
Jo-Philipp Wich
33fba71fc9 libs/core: make luci.util.spairs(), kspairs() and vspairs() return the sequential index as 3rd variable 2012-12-25 02:28:20 +00:00
Jo-Philipp Wich
ce8a22d1b4 libs/core: remove unused luci.util.escape(), map luci.util.striptags() to luci.template.parser.striptags() 2012-11-26 14:26:46 +00:00
Jo-Philipp Wich
9fab594101 libs/core: improve luci.util.imatch() to not create temporary strings when iterating non-string values 2012-06-26 22:58:24 +00:00
Jo-Philipp Wich
5a03beffcb libs/core: switch to C pcdata() implementation, its up to 7 times faster while also ensuring safe UTF-8 2010-11-13 12:16:51 +00:00
Jo-Philipp Wich
472ffe69a9 libs/core: restore original implementation of copcall() and coxpcall(), solves issues with RPC UCI endpoint 2010-11-09 19:43:13 +00:00
Jo-Philipp Wich
ddd1ba088e libs/core: introduce luci.util.imatch() 2010-10-30 17:54:25 +00:00
Jo-Philipp Wich
2fede7361f libs/core: disable runtime byte code stripping, it causes lvm errors (OpenWrt #6235, LuCI #110) 2010-03-18 15:19:11 +00:00
Jo-Philipp Wich
26d792d914 libs/core: properly handle udata values in overloaded string format operator 2009-07-29 04:29:22 +00:00
Steven Barth
ce98fdd80f Optimize util.threadlocal, Add luci.store as global threadlocal store 2009-07-27 10:27:39 +00:00
Jo-Philipp Wich
4ef3ac9694 libs/core: support udata util.striptags(), optimizie copcall implementation 2009-07-25 02:57:13 +00:00
Jo-Philipp Wich
a4f6748205 libs/core: util.lua optimize get() and set() accessors of threadlocals 2009-07-23 03:21:18 +00:00
Jo-Philipp Wich
8fcd841aa9 convert luci.fs users to nixio.fs api 2009-07-19 00:24:58 +00:00
Jo-Philipp Wich
60613ef05c libs/core: trigger garbage collection in coxpcall() if 80% of the allocated memory pool are filled 2009-07-10 17:38:01 +00:00
Jo-Philipp Wich
128437f671 libs/core: optimize strip_bytecode() memory usage by avoiding string concatenation 2009-07-10 16:30:43 +00:00
Jo-Philipp Wich
b0abe4aa08 libs/core: further fixes for luci.util.pcdata(), fix wrong character range and drop invalid control chars entirely 2009-01-25 13:03:17 +00:00
Jo-Philipp Wich
e226a77b24 libs/core: rework luci.util.pcdata() to also escape ascii control chars 2009-01-25 12:29:37 +00:00
Steven Barth
408e9d289d Fixed last commit 2008-11-20 21:16:02 +00:00
Steven Barth
8d2c8c131d Remove luci.cutil: does not affect performance 2008-11-20 21:14:58 +00:00
Steven Barth
a3cf596d37 More luci.cutil 2008-11-20 19:39:40 +00:00
Steven Barth
9c260769a5 More C-Functions (luci.cutil.instanceof, luci.cutil.pcdata) 2008-11-20 19:22:05 +00:00
Steven Barth
9a203c52dd Integrate core C implementation 2008-11-20 15:15:50 +00:00
Jo-Philipp Wich
cbed72fb47 * luci/themes: fix log pages
* luci/modules/admin-full: add dmesg page
* luci/i18n: add "dmesg" translations
* luci/libs/util: add cmatch(), register string functions in string class
* luci/libs/sys: add dmesg()
2008-11-16 22:45:10 +00:00
Steven Barth
676966f78b Add luci.util.append 2008-10-30 19:10:39 +00:00
Steven Barth
8d9a130b70 luci.util.combine now also accepts single objects 2008-10-30 19:10:22 +00:00
Jo-Philipp Wich
9451a49408 * luci/libs/core: use numeric entities in pcdata() 2008-10-24 19:15:09 +00:00
Steven Barth
1a4c192c65 More luci.util optimizations 2008-09-10 12:47:21 +00:00
Steven Barth
9e2759ec34 Optimized luci.util.class 2008-09-10 12:22:29 +00:00
Steven Barth
8dbf29e86e Performance optimisations:
In-line expressions are faster than function calls
2008-09-09 12:44:41 +00:00
Steven Barth
8e00d27ae7 Removed unneeded exports 2008-09-06 09:58:32 +00:00
Steven Barth
40d4e839ef Added bytecodecache 2008-09-05 23:24:39 +00:00
Steven Barth
4483ebd74d Removed inefficient environment manipulation functions 2008-09-05 18:35:14 +00:00
Steven Barth
c1edac6ed0 libs/core: Added mising import for math module to luci.util 2008-09-01 11:10:06 +00:00
Steven Barth
ffd5c4ec65 General optimizations, simplifications and improvements 2008-08-29 23:26:01 +00:00
Steven Barth
8f03192ce4 Fixed luci.util.dumptable again 2008-08-28 18:57:34 +00:00
Steven Barth
8b28f46eea Added maxdepth to luci.util.dumptable 2008-08-28 17:10:35 +00:00
Jo-Philipp Wich
af2cce3839 * luci/libs: util: little bugfix in serialize_data() 2008-08-28 16:44:10 +00:00
Jo-Philipp Wich
33ef3a1da2 * luci/libs: util: further enhancements to table serialisation 2008-08-28 16:40:51 +00:00
Jo-Philipp Wich
2975bb66a6 * luci/libs: util: improve table handling and support mixed tables in serialize_data() 2008-08-28 16:17:42 +00:00
Steven Barth
b3d63252e7 Fixed luci.util.dumptable 2008-08-28 16:16:51 +00:00
Steven Barth
ba22660cb8 libs/core: Add recursion detection to dumptable, serialize_data
Dumptable now writes to stderr
2008-08-28 15:50:27 +00:00
Steven Barth
0647fadb0a libs/core: Add Pythonic string formatting syntax 2008-08-24 16:35:06 +00:00
Jo-Philipp Wich
ab71972c7e * luci/libs: use pcdata() in striptags() 2008-08-20 16:55:10 +00:00
Jo-Philipp Wich
5b718fe88d * luci/libs: add striptags() to luci.util 2008-08-20 16:40:25 +00:00
Jo-Philipp Wich
c7ba7f99b0 * luci/libs: add keys() to luci.util 2008-08-17 14:56:03 +00:00
Steven Barth
8e4afe1210 Several escaping fixes
Updated XML translation system
Use the new Table widget for DHCP leases
2008-08-15 20:42:25 +00:00
Steven Barth
2b0e8c6d7f libs/core: Add luci.execi as memory efficient replacement for now deprecated luci.execl 2008-08-14 21:55:43 +00:00
Steven Barth
568441a441 libs/core: Added missing license information to coxpcall 2008-08-14 11:49:50 +00:00
Steven Barth
50093ed3d9 Moved luci.sys.libpath to luci.util 2008-08-06 20:20:40 +00:00
Steven Barth
76982655fa Moved luci.sys.exec, luci.sys.execl and luci.sys.bigendian to luci.util 2008-08-06 20:11:15 +00:00
Steven Barth
8c3ee6f9b7 Added "apidocs" target to Makefile
contrib/luadoc: Added luadoc executable
libs: Fixed typos in inline documentation
2008-07-29 21:16:12 +00:00