summaryrefslogtreecommitdiff
path: root/src/truncate.erl
Commit message (Collapse)AuthorAgeFilesLines
* Remove the unused truncate moduleLoïc Hoguin2018-12-111-127/+0
| | | | This kind of truncation is done automatically by lager now.
* (c) yearMichael Klishin2017-04-021-1/+1
|
* Switch testsuite to common_test, part #1Jean-Sébastien Pédron2016-05-271-71/+4
| | | | | | | | | | | | | | | | | | The migrated tests are the external ones executed from `rabbit_tests.erl`: o credit_flow_test o gm_tests o mirrored_supervisor_tests o on_disk_store_tunable_parameter_validation_test o password_hashing_tests o rabbit_ctl_timeout_tests o rabbit_resource_monitor_misc_test o supervisor2_tests o truncate o vm_memory_monitor_tests References #725. [#116526487]
* Update (c) infoMichael Klishin2016-01-011-1/+1
|
* (c) yearMichael Klishin2015-05-241-1/+1
|
* Improve the performance of determine_persist_to/2, stop it being a hotspot.Simon MacMullen2015-01-201-1/+1
|
* Rename this for a bit more clarity.Simon MacMullen2015-01-131-3/+3
|
* So that term_to_binary/1 there somehow seemed to end up creating a lot of ↵Simon MacMullen2015-01-091-1/+1
| | | | garbage under heavy load; pumping millions of messages into a queue became almost quadratic. I'm not sure how or why, but let's try another tactic.
* OopsSimon MacMullen2014-06-111-1/+1
|
* Don't fail if asked to truncate a reference. And go to having a catch-all case.Simon MacMullen2014-06-111-4/+6
|
* Fix tests for 32 bit machines.Simon MacMullen2014-06-091-2/+8
|
* Actually, let's count in bytes rather than words-but-bytes-for-binaries.Simon MacMullen2014-05-271-22/+23
|
* By making lim/2 handle soem more limit_exceeded cases we can simplify ↵Simon MacMullen2014-05-271-22/+14
| | | | everything else. Also only invoke tuple_size/1 once per tuple.
* Avoid tuple_to_list/1.Simon MacMullen2014-05-271-1/+13
|
* More tests.Simon MacMullen2014-05-271-2/+18
|
* Remove a terminal case it's not possible to hit, and make sure we wrap lim() ↵Simon MacMullen2014-05-271-2/+1
| | | | everywhere we need it.
* Limit the amount of time we spend seeing how large something is.Simon MacMullen2014-05-271-10/+28
|
* Don't truncate "small" things at all.Simon MacMullen2014-05-221-8/+27
|
* Cope if report is not a list.Simon MacMullen2014-05-161-5/+6
|
* Ensure we don't start treating a list as printable half way through it, or ↵Simon MacMullen2014-04-241-13/+17
| | | | if it was originally a tuple.
* Have a completely separate counter for content size vs structural size.Simon MacMullen2014-03-241-23/+37
|
* Fix bitstrings, export term/3.Simon MacMullen2014-03-241-3/+7
|
* tiny tidyingSimon MacMullen2014-03-241-4/+4
|
* More robustness in the shape of unusual events.Simon MacMullen2014-03-241-6/+7
|
* cosmeticSimon MacMullen2014-03-241-1/+1
|
* Several more changes:Simon MacMullen2014-03-241-20/+19
| | | | | | * Remove the special tuple handling, it was trying to not reduce depth as we went "along" a tuple, but that goes badly in real world tests with gb_trees and gb_sets. In fact we just want to treat a tuple exactly like a list. * Simplify and correctify a bit by only having one termination condition for depth. * Add some more tests, and correct some existing ones.
* Something of a rewrite:Simon MacMullen2014-03-241-46/+70
| | | | | | | * Allow choice of how much size to "eat" each time we descend * Fix at least one more recurse-indefinitely bug * Try to reduce the amount of copying we do, and use more efficient techniques * Add some tests
* Remove obsolete TODOs, fix a rather substantial bug.Simon MacMullen2014-03-241-3/+1
|
* Don't let the truncate module have any opinion on how much to truncate.Simon MacMullen2014-03-241-10/+8
|
* Rename module and functions to be shorter and more generic. Remove ↵Simon MacMullen2014-03-241-0/+86
quickcheck tests. Wire into the non-sasl error_handler, but don't wire into handle_info and handle_call functions since those should not be logs.