Commit Graph

180 Commits

Author SHA1 Message Date
Kogia-sima 6c21955189 Fix memcpy_small implementation to emulate glibc implenetation exactly 2020-07-10 07:38:06 +09:00
Kogia-sima 3043719d35 Fix default implementation of Render::render_escaped 2020-07-10 00:32:58 +09:00
Kogia-sima 7d0538b244 Fix HTML escaping in char rendering 2020-07-10 00:30:25 +09:00
Kogia-sima 5c4c66f331 Add copyright notice in benchmark 2020-07-09 23:48:26 +09:00
Kogia-sima 2807340e59 Update Teams benchmark result 2020-07-09 23:44:30 +09:00
Kogia-sima f1ad6f3bd3 Escape HTML in std::write! benchmark
cc #22
2020-07-09 23:44:25 +09:00
Kogia-sima 6ab65f4247 Use itoap crate to render integers 2020-07-08 22:26:47 +09:00
Kogia-sima d86a35cbd6 Fix Integer::MAX_LEN for usize and isize 2020-07-08 07:06:49 +09:00
Kogia-sima b46ffbe623 Optimize write_u128 for small integers 2020-07-08 05:55:03 +09:00
Kogia-sima 636633331b clippy 2020-07-05 13:33:56 +09:00
Kogia-sima 36be07bbc7 More compiler hints 2020-07-05 13:25:57 +09:00
Kogia-sima 8107bb84ca perf: More powerful small escape optimization 2020-07-04 22:32:33 +09:00
Kogia-sima e8beaef33b Bump version (0.1.1 => 0.1.2) 2020-07-04 06:17:09 +09:00
Kogia-sima 74ec8a86fc Merge branch 'perf/small_escape_optimization' 2020-07-03 02:05:08 +09:00
Kogia-sima 3375194a54 Update benchmark result 2020-07-03 02:02:01 +09:00
Kogia-sima b596baa69e Implement small escape optimization 2020-07-03 01:58:50 +09:00
Kogia-sima a885f08d73 Update benchmark result 2020-07-03 01:02:35 +09:00
Kogia-sima 064d6cf2b6 Update benchmark code 2020-07-02 20:31:05 +09:00
Kogia-sima 200cb53a66 Update README 2020-07-02 18:28:22 +09:00
Kogia-sima ea080e8a6c impl Render for u128/i128 2020-06-20 21:21:51 +09:00
Kogia-sima ed8f237c4e Update README
[skip ci]
2020-06-19 19:13:24 +09:00
Kogia-sima 6cacdad287 feat: RenderError::new() method 2020-06-19 18:07:19 +09:00
Kogia-sima be293c8f90 Update doc comments 2020-06-19 15:40:30 +09:00
Kogia-sima 03413d1bcc Update documentation
[skip ci]
2020-06-19 15:01:07 +09:00
Kogia-sima faa8e661f7 Merge branch 'update-bench' 2020-06-19 12:34:33 +09:00
Kogia-sima 933d7850d7 Update benchmark results 2020-06-19 12:33:24 +09:00
Kogia-sima f40926122b feat: Add TemplateOnce::render_once_to_string method 2020-06-18 18:37:39 +09:00
Kogia-sima b5d035493f Bump version (0.1.0 => 0.1.1) 2020-06-18 18:04:02 +09:00
Kogia-sima 7c97d4e0ff Speedup floating point formatting 2020-06-18 17:51:59 +09:00
Kogia-sima dd4d31a48c Add new feature (perf-inline) 2020-06-18 17:28:10 +09:00
Kogia-sima bc4bb47082 feat: register_escape_fn API 2020-06-18 17:25:04 +09:00
Kogia-sima 0e99d66840 Fix sailfish template for teams benchmark 2020-06-18 17:13:08 +09:00
Kogia-sima 9a7f62e3ca Improve buffering performance 2020-06-18 17:12:55 +09:00
Kogia-sima 48eb36560a Resize icon for docs.rs 2020-06-18 01:04:10 +09:00
Kogia-sima 0f88c943bf fix: Handle capacity overflow 2020-06-18 00:49:59 +09:00
Kogia-sima 6c9ad14e90 Merge commit '9681e6c' 2020-06-18 00:47:44 +09:00
Kogia-sima 9681e6c623 Change target name in examples/Cargo.toml 2020-06-17 00:53:12 +09:00
Kogia-sima 880cf9db5a
Merge pull request #13 from botika/master
Add unsafe attributes at yarte fixed bench
2020-06-17 00:36:42 +09:00
Kogia-sima 8d897b828f Minimum supported Rust version in README 2020-06-17 00:08:40 +09:00
Kogia-sima b773a28e2a Update benchmark result 2020-06-17 00:00:12 +09:00
Kogia-sima a48b67433e Merge pull request #12 from 'botika/master' 2020-06-16 23:33:45 +09:00
Kogia-sima ace9472d39 skip test in 1.42.0 2020-06-16 22:59:58 +09:00
Kogia-sima f094b0671d Avoid using primitive::MIN/primitive::MAX
These associated constants is not supported in 1.42
2020-06-16 22:47:26 +09:00
Kogia-sima 41001ef0ee Fix Rust version in .travis.yml 2020-06-16 22:32:49 +09:00
Kogia-sima 0cfcb14624 refactor: Rename private trait method 2020-06-16 22:27:08 +09:00
Kogia-sima 9e2952d92d Add Buffer::render_internal method to speedup reserve method 2020-06-16 20:00:35 +09:00
Kogia-sima 441bceb412 Downgrade proc-macro2 minimum version in sailfish-macros 2020-06-16 19:46:38 +09:00
Kogia-sima 057450a5fb Test on minimum supported Rust version (Travis CI) 2020-06-16 19:41:31 +09:00
Juan Aguilar Santillana 1aca11acfe Add unsafe attributes at yarte fixed bench 2020-06-16 08:23:24 +00:00
Juan Aguilar Santillana d07161918b Add and specify behaviours for yarte benches 2020-06-16 07:01:04 +00:00
Juan Aguilar Santillana 3a6ef334d4 Use bytes crate as buffer 2020-06-16 06:46:37 +00:00
Kogia-sima 0f3d0f7705 Fix documentation about HTML escaping 2020-06-16 13:51:18 +09:00
Kogia-sima 455cb55de6 Update benchmark result 2020-06-16 05:51:49 +09:00
Kogia-sima 98dc405da1 Add more libraries for benchmark 2020-06-16 05:51:37 +09:00
Kogia-sima f2d5eb2b73 Bump version (0.0.5 => 0.1.0) 2020-06-15 12:17:19 +09:00
Kogia-sima e00fe1804d Update Cargo.lock in benches/ 2020-06-15 12:10:49 +09:00
Kogia-sima 1379f9b3b3 Escape single quote (')
It seems that EJS escapes this character.
2020-06-15 12:06:14 +09:00
Kogia-sima 4803792d4c Merge branch 'feature/config_file' 2020-06-15 07:31:34 +09:00
Kogia-sima d1b6d2559a feat: New feature flag (config) 2020-06-15 06:44:49 +09:00
Kogia-sima 6865b85159 Update documents
- Add `Configuration file` section
2020-06-15 06:25:56 +09:00
Kogia-sima 76df7e6e1b Update test for 2d994be 2020-06-15 05:37:02 +09:00
Kogia-sima 2d994be4ff feat: Global configuration file 2020-06-15 05:36:39 +09:00
Kogia-sima 5b4c13af3e dep: Add dependency (yaml-rust) 2020-06-14 22:07:28 +09:00
Kogia-sima 25364a6bcc Enhanced error message 2020-06-14 17:30:36 +09:00
Kogia-sima 97f6a74248 Checks the return value of alloc function 2020-06-14 13:45:20 +09:00
Kogia-sima 4fef20fa86 Add crate-level documentation 2020-06-14 12:29:45 +09:00
Kogia-sima a8b3856977 Fix logo icon url 2020-06-14 02:50:24 +09:00
Kogia-sima 008b1bf6ea Add logo icon for docs.rs 2020-06-14 02:47:20 +09:00
Kogia-sima 733e1a6c63 Bump version (0.0.4 => 0.0.5) 2020-06-13 23:18:07 +09:00
Kogia-sima 8864d0258c Add tests for method name collision
cc #9
2020-06-13 23:04:14 +09:00
Kogia-sima 98e11b1163 fix: Re-compile when child template is update. 2020-06-13 22:58:57 +09:00
Kogia-sima 9949c91f7d Fix std::write benchmark 2020-06-13 14:24:36 +09:00
Kogia-sima 8a83c2e278 Avoid method name collision in render* macros
fix #9
2020-06-13 13:16:39 +09:00
Juan Aguilar Santillana 86658d4a96 Fix yarte fixed bench 2020-06-12 08:20:45 +00:00
Kogia-sima dad577db8b Avoid empty buffer allocation
cc #10
2020-06-12 15:03:57 +09:00
Kogia-sima db41ab3cb1 Use `capacity == 0` instead of `ptr::is_null`
This change allows more fast conversion between String
2020-06-12 14:56:49 +09:00
Kogia-sima 1fa5186e34 Manually implement Clone and Debug for Buffer
fix #10
2020-06-12 14:56:36 +09:00
Kogia-sima 6ac39eee4c refactor: refactor resolver code 2020-06-11 21:35:14 +09:00
Kogia-sima ab4b0c99e6 Move include_rust test into unix module
This test fails on Windows because arguments in include! macro is
regarded as native path. This follows the std::include! macro behaviour.
2020-06-11 19:49:35 +09:00
Kogia-sima d7a2ff8008 Fix include! implementation for Rust file
Also add tests for including Rust file
2020-06-11 19:43:01 +09:00
Kogia-sima d302f30144 Format code 2020-06-11 19:42:22 +09:00
Kogia-sima dc4d062b8d Test for Error::kind() 2020-06-11 19:22:19 +09:00
Kogia-sima 0612a28c50 Add rust_macro test 2020-06-11 19:18:51 +09:00
Kogia-sima 6dea4793ab Add some tests for runtime 2020-06-11 19:02:28 +09:00
Kogia-sima d7c3b8fa0b Add some compile error test 2020-06-11 16:01:30 +09:00
Kogia-sima 7665690982 Change input/output directory for integration-tests 2020-06-11 15:31:55 +09:00
Kogia-sima 7cc4692951 Bump version (0.0.3 => 0.0.4) 2020-06-11 11:55:51 +09:00
Kogia-sima 1539f23a35 Remove dependency (itoa) 2020-06-11 11:53:45 +09:00
Kogia-sima 9cfb4d5d85 Reduce output binary size without performance degration
- Remove #[inline] from sailfish::runtime::integer::write_* functions
- Add #[inline(never)] for sailfish::runtime::Buffer::reserve
2020-06-11 11:41:48 +09:00
Kogia-sima 012ee9d993 Speed up HTML escaping when target feature was specified 2020-06-10 23:30:11 +09:00
Kogia-sima 86e8313db4 Add missing `#[cfg(test)]` 2020-06-10 19:27:05 +09:00
Kogia-sima 93672551d8 Update benchmark environment 2020-06-10 19:21:43 +09:00
Kogia-sima a33b8ad1f4 Speedup appveyor build 2020-06-10 19:15:39 +09:00
Kogia-sima 02380994dd Update benchmark result
[skip ci]
2020-06-10 19:14:33 +09:00
Kogia-sima 21064b2662 Merge branch 'perf/fastint' 2020-06-10 18:44:10 +09:00
Kogia-sima c5a311e8c6 Use integer module to render integer 2020-06-10 18:41:12 +09:00
Kogia-sima c5015be783 Add new module (sailfish::runtime::integer) 2020-06-10 18:33:31 +09:00
Kogia-sima aea4e02259 Optimize escape function for small strings 2020-06-10 10:56:25 +09:00
Kogia-sima 53f0db024c Speed up feature detection for escaping
- Remove sailfish::runtime::escape::escape_with
2020-06-10 10:27:13 +09:00
Kogia-sima 655bcb9e2f Add .gitattributes 2020-06-10 00:00:20 +09:00