| 727 | } |
| 728 | |
| 729 | clock_type::duration |
| 730 | parse_file(file_item const& fi, std::size_t repeat) const override |
| 731 | { |
| 732 | auto const start = clock_type::now(); |
| 733 | while(repeat--) |
| 734 | { |
| 735 | monotonic_resource mr; |
| 736 | storage_ptr sp; |
| 737 | if( is_pool_ ) |
| 738 | sp = &mr; |
| 739 | |
| 740 | std::ifstream is( fi.name, std::ios::in | std::ios::binary ); |
| 741 | is.exceptions(std::ios::failbit); |
| 742 | |
| 743 | value jv( std::move(sp) ); |
| 744 | is >> get_parse_options() >> jv; |
| 745 | } |
| 746 | return clock_type::now() - start; |
| 747 | } |
| 748 | |
| 749 | clock_type::duration |
| 750 | serialize_string(file_item const& fi, std::size_t repeat) const override |
nothing calls this directly
no outgoing calls
no test coverage detected