├── .github └── .gitkeep ├── .gitignore ├── 01_understanding ├── check_prime.py └── reducing_operations.py ├── 02_profiling ├── julia1.py ├── julia1_decorator.py ├── julia1_lineprofiler.py ├── julia1_lineprofiler2.py ├── julia1_lineprofiler3.py ├── julia1_memoryprofiler.py ├── julia1_memoryprofiler2.py ├── julia1_memoryprofiler_with_labels.py ├── julia1_nopil.py └── utility.py ├── 03_lists_tuples ├── binary_search.py ├── binary_vs_linear_search.py ├── bisect_example.py └── linear_search.py ├── 04_dict_set ├── custom_hash_function.py ├── custom_vs_default_hash.py ├── dict_probing.py ├── namespace.py ├── timing_hash_function.py └── unique_lookup.py ├── 05_iterators ├── fibonacci.py └── lazy_data_analysis.py ├── 06_matrix ├── Makefile ├── diffusion_2d │ ├── Makefile │ ├── README.md │ ├── _benchmark.py │ ├── diffusion_numpy.py │ ├── diffusion_numpy_memory.py │ ├── diffusion_numpy_memory2.py │ ├── diffusion_numpy_memory2_numexpr.py │ ├── diffusion_numpy_memory2_numexpr_single.py │ ├── diffusion_numpy_naive.py │ ├── diffusion_python.py │ ├── diffusion_python_memory.py │ ├── diffusion_scipy.py │ ├── kernprof │ │ ├── diffusion_numpy.kernprof │ │ ├── diffusion_numpy_memory.kernprof │ │ ├── diffusion_numpy_memory2.kernprof │ │ ├── diffusion_numpy_memory2_numexpr.kernprof │ │ ├── diffusion_numpy_memory2_numexpr_single.kernprof │ │ ├── diffusion_numpy_naive.kernprof │ │ ├── diffusion_python.kernprof │ │ ├── diffusion_python_memory.kernprof │ │ └── diffusion_scipy.kernprof │ ├── memit │ │ ├── diffusion_numpy.memit │ │ ├── diffusion_numpy_memory.memit │ │ ├── diffusion_numpy_memory2.memit │ │ ├── diffusion_numpy_memory2_numexpr.memit │ │ ├── diffusion_numpy_memory2_numexpr_single.memit │ │ ├── diffusion_numpy_naive.memit │ │ ├── diffusion_python.memit │ │ ├── diffusion_python_memory.memit │ │ └── diffusion_scipy.memit │ ├── perf │ │ ├── diffusion_numpy.novec.perf │ │ ├── diffusion_numpy.perf │ │ ├── diffusion_numpy_memory.perf │ │ ├── diffusion_numpy_memory2.perf │ │ ├── diffusion_numpy_memory2_numexpr.perf │ │ ├── diffusion_numpy_memory2_numexpr_single.perf │ │ ├── diffusion_numpy_naive.perf │ │ ├── diffusion_python.perf │ │ ├── diffusion_python_memory.perf │ │ └── diffusion_scipy.perf │ └── time │ │ ├── diffusion_numpy.time │ │ ├── diffusion_numpy_memory.time │ │ ├── diffusion_numpy_memory2.time │ │ ├── diffusion_numpy_memory2_numexpr.time │ │ ├── diffusion_numpy_memory2_numexpr_single.time │ │ ├── diffusion_numpy_naive.time │ │ ├── diffusion_python.time │ │ ├── diffusion_python_memory.time │ │ └── diffusion_scipy.time ├── norm │ ├── Makefile │ ├── norm_array.memit │ ├── norm_array.py │ ├── norm_numpy.py │ ├── norm_numpy_dot.py │ ├── norm_python.py │ ├── norm_python_comprehension.py │ ├── perf │ │ ├── norm_array.perf │ │ ├── norm_numpy.perf │ │ ├── norm_numpy_dot.perf │ │ ├── norm_python.perf │ │ └── norm_python_comprehension.perf │ └── time │ │ ├── norm_array.time │ │ ├── norm_numpy.time │ │ └── norm_python.time └── pandas │ ├── compare_sklearn_lstsq_timing.py │ ├── generate_data.py │ ├── plot_min_max_slopes.py │ ├── sklearn_line_profiler.py │ ├── str_operation.py │ ├── time_iteration_methods.py │ └── utility.py ├── 07_compiling ├── .gitignore ├── Makefile ├── cffi │ ├── diffusion_2d_cffi.py │ └── diffusion_2d_cffi_inline.py ├── cpython_module │ ├── .gitignore │ ├── cdiffusion │ │ ├── diffusion.h │ │ └── python_interface.c │ ├── diffusion.py │ └── setup.py ├── ctypes │ └── diffusion_ctypes.py ├── diffusion.c ├── f2py │ ├── .gitignore │ ├── Makefile │ ├── diffusion.f90 │ └── diffusion_fortran.py ├── julia │ ├── cython │ │ ├── cpython │ │ │ ├── cythonfn.pyx │ │ │ ├── cythonfn1.pyx │ │ │ ├── cythonfn2.pyx │ │ │ ├── cythonfn3.pyx │ │ │ ├── cythonfn4.pyx │ │ │ ├── cythonfn5.pyx │ │ │ ├── julia1.py │ │ │ └── setup.py │ │ ├── cpython_pyximport │ │ │ ├── cythonfn.pyx │ │ │ └── julia1.py │ │ └── nparray_memoryview │ │ │ ├── cythonfn.pyx │ │ │ ├── cythonfn1.pyx │ │ │ ├── cythonfn2.pyx │ │ │ ├── julia1.py │ │ │ ├── julia1_np_nocython.py │ │ │ ├── parallel │ │ │ ├── cythonfn.pyx │ │ │ ├── cythonfn1.pyx │ │ │ ├── cythonfn2.pyx │ │ │ ├── cythonfn3.pyx │ │ │ ├── julia1.py │ │ │ └── setup.py │ │ │ └── setup.py │ ├── julia1_nopil.py │ ├── julia1_nopil_expanded_math_pypy.py │ ├── julia1_numba.py │ └── julia1_numba_expandedmath_inspection.py └── pytorch │ ├── compare.py │ ├── diffusion_numpy.py │ ├── diffusion_pytorch.py │ ├── random_access.py │ └── requirements.txt ├── 08_concurrency ├── crawler │ ├── asyncio │ │ └── crawler.py │ ├── benchmark.sh │ ├── gevent │ │ └── crawler.py │ ├── images │ │ ├── asyncio.png │ │ ├── gevent.png │ │ ├── grequests.png │ │ ├── parallel_requests.png │ │ ├── serial.png │ │ └── tornado.png │ ├── metric_data.json │ ├── parallel_requests.json │ ├── parallel_requests.py │ ├── serial │ │ └── crawler.py │ ├── server.py │ ├── tornado │ │ └── crawler.py │ ├── tornado_callback │ │ └── crawler.py │ └── visualize.py ├── requirements.txt └── workload │ ├── images │ ├── async_callgraph.png │ ├── workload_async_batches_no-IO.png │ ├── workload_async_batches_no-IO_serial.png │ ├── workload_async_no-IO.png │ ├── workload_batches_no-IO.png │ ├── workload_file-IO_no-IO.png │ └── workload_no-IO_serial.png │ ├── server.py │ ├── workload.py │ └── workloads.json ├── 09_multiprocessing ├── locking │ ├── ex1_lock.py │ ├── ex1_nolock1.py │ ├── ex1_nolock4.py │ ├── ex2_lock.py │ ├── ex2_lock_rawvalue.py │ ├── ex2_nolock.py │ └── ex3_redis.py ├── np_shared_example │ ├── np_shared.py │ └── rnd_demo │ │ ├── np_shared_rnd_parallel.py │ │ └── np_shared_rnd_serial.py ├── pi_estimation │ ├── pi_lists_parallel │ │ ├── pi_graph_speed_tests.py │ │ ├── pi_lists_parallel.py │ │ ├── pi_lists_parallel_joblib.py │ │ ├── pi_lists_parallel_joblib_cache.py │ │ └── pi_lists_series.py │ ├── pi_monte_carlo_diagram │ │ └── pi_plot_monte_carlo_example.py │ └── pi_processes_parallel │ │ ├── pi_graph_speed_tests.py │ │ ├── pi_numpy_parallel_worker.py │ │ ├── pi_numpy_serial.py │ │ └── pi_numpy_serial_blocks.py ├── prime_generation │ ├── plot_serial_vs_queue_times.py │ ├── primes.py │ ├── primes_pool.py │ ├── primes_queue.py │ ├── primes_queue_jobs_feeder_thread.py │ └── primes_queue_less_work.py └── prime_validation │ ├── create_range.py │ ├── plot_prime_validation_times.py │ ├── primes.py │ ├── primes_factor_test.py │ ├── primes_pool_per_number1.py │ ├── primes_pool_per_number2.py │ ├── primes_pool_per_number_manager.py │ ├── primes_pool_per_number_mmap.py │ ├── primes_pool_per_number_mmap2.py │ ├── primes_pool_per_number_mmap3.py │ ├── primes_pool_per_number_mmap4.py │ ├── primes_pool_per_number_redis.py │ └── primes_pool_per_number_value.py ├── 10_clusters ├── docker │ ├── Dockerfile │ ├── Makefile │ ├── diffusion_numpy_memory2.py │ └── requirements.txt ├── ipython_parallel │ └── pi_ipython_cluster.py └── nsq │ └── nsq_worker.py ├── 11_less_ram ├── compressing_text │ ├── all_unique_words_wikipedia_via_gensim.txt │ ├── plot_example.py │ ├── text_example.py │ ├── text_example_clean_list.py │ ├── text_example_clean_list_wikipedia_gensim.py │ ├── text_example_dawg.py │ ├── text_example_dawg_load_only.py │ ├── text_example_list.py │ ├── text_example_list_bisect.py │ ├── text_example_set.py │ ├── text_example_trie.py │ └── text_example_trie_load_only.py ├── getsizeof │ └── asizeof.py ├── morris_counter_example │ ├── morris_counter.py │ └── show_morris_counter.py ├── numexpr_pandas │ └── make_cross_entropy_picture.py ├── probabilistic_datastructures │ ├── __init__.py │ ├── _benchmark.clean.pkl │ ├── _benchmark.pkl │ ├── _benchmark.py │ ├── bloomfilter.py │ ├── hyperloglog.py │ ├── kminvalues.py │ ├── ll.py │ ├── llregister.py │ ├── morriscounter.py │ ├── prob_ds_figure.py │ ├── requirements.txt │ ├── results │ │ └── unique.pkl │ ├── scalingbloomfilter.py │ ├── superll.py │ └── utils.py ├── sklearn_hashing_trick │ ├── feature_hashing_explanation2.py │ ├── feature_hashing_explanation_nb.ipynb │ └── feature_hashing_test1.py └── sparse │ └── benchmark_sparse.py ├── 12_lessons └── sieve.py ├── README.md ├── cover.png ├── poetry.lock └── pyproject.toml /.github/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/.gitignore -------------------------------------------------------------------------------- /01_understanding/check_prime.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/01_understanding/check_prime.py -------------------------------------------------------------------------------- /01_understanding/reducing_operations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/01_understanding/reducing_operations.py -------------------------------------------------------------------------------- /02_profiling/julia1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/02_profiling/julia1.py -------------------------------------------------------------------------------- /02_profiling/julia1_decorator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/02_profiling/julia1_decorator.py -------------------------------------------------------------------------------- /02_profiling/julia1_lineprofiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/02_profiling/julia1_lineprofiler.py -------------------------------------------------------------------------------- /02_profiling/julia1_lineprofiler2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/02_profiling/julia1_lineprofiler2.py -------------------------------------------------------------------------------- /02_profiling/julia1_lineprofiler3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/02_profiling/julia1_lineprofiler3.py -------------------------------------------------------------------------------- /02_profiling/julia1_memoryprofiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/02_profiling/julia1_memoryprofiler.py -------------------------------------------------------------------------------- /02_profiling/julia1_memoryprofiler2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/02_profiling/julia1_memoryprofiler2.py -------------------------------------------------------------------------------- /02_profiling/julia1_memoryprofiler_with_labels.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/02_profiling/julia1_memoryprofiler_with_labels.py -------------------------------------------------------------------------------- /02_profiling/julia1_nopil.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/02_profiling/julia1_nopil.py -------------------------------------------------------------------------------- /02_profiling/utility.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/02_profiling/utility.py -------------------------------------------------------------------------------- /03_lists_tuples/binary_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/03_lists_tuples/binary_search.py -------------------------------------------------------------------------------- /03_lists_tuples/binary_vs_linear_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/03_lists_tuples/binary_vs_linear_search.py -------------------------------------------------------------------------------- /03_lists_tuples/bisect_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/03_lists_tuples/bisect_example.py -------------------------------------------------------------------------------- /03_lists_tuples/linear_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/03_lists_tuples/linear_search.py -------------------------------------------------------------------------------- /04_dict_set/custom_hash_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/04_dict_set/custom_hash_function.py -------------------------------------------------------------------------------- /04_dict_set/custom_vs_default_hash.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/04_dict_set/custom_vs_default_hash.py -------------------------------------------------------------------------------- /04_dict_set/dict_probing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/04_dict_set/dict_probing.py -------------------------------------------------------------------------------- /04_dict_set/namespace.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/04_dict_set/namespace.py -------------------------------------------------------------------------------- /04_dict_set/timing_hash_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/04_dict_set/timing_hash_function.py -------------------------------------------------------------------------------- /04_dict_set/unique_lookup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/04_dict_set/unique_lookup.py -------------------------------------------------------------------------------- /05_iterators/fibonacci.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/05_iterators/fibonacci.py -------------------------------------------------------------------------------- /05_iterators/lazy_data_analysis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/05_iterators/lazy_data_analysis.py -------------------------------------------------------------------------------- /06_matrix/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/Makefile -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/Makefile: -------------------------------------------------------------------------------- 1 | include ../../Makefile 2 | -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/README.md -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/_benchmark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/_benchmark.py -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/diffusion_numpy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/diffusion_numpy.py -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/diffusion_numpy_memory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/diffusion_numpy_memory.py -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/diffusion_numpy_memory2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/diffusion_numpy_memory2.py -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/diffusion_numpy_memory2_numexpr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/diffusion_numpy_memory2_numexpr.py -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/diffusion_numpy_memory2_numexpr_single.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/diffusion_numpy_memory2_numexpr_single.py -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/diffusion_numpy_naive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/diffusion_numpy_naive.py -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/diffusion_python.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/diffusion_python.py -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/diffusion_python_memory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/diffusion_python_memory.py -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/diffusion_scipy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/diffusion_scipy.py -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/kernprof/diffusion_numpy.kernprof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/kernprof/diffusion_numpy.kernprof -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/kernprof/diffusion_numpy_memory.kernprof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/kernprof/diffusion_numpy_memory.kernprof -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/kernprof/diffusion_numpy_memory2.kernprof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/kernprof/diffusion_numpy_memory2.kernprof -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/kernprof/diffusion_numpy_memory2_numexpr.kernprof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/kernprof/diffusion_numpy_memory2_numexpr.kernprof -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/kernprof/diffusion_numpy_memory2_numexpr_single.kernprof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/kernprof/diffusion_numpy_memory2_numexpr_single.kernprof -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/kernprof/diffusion_numpy_naive.kernprof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/kernprof/diffusion_numpy_naive.kernprof -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/kernprof/diffusion_python.kernprof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/kernprof/diffusion_python.kernprof -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/kernprof/diffusion_python_memory.kernprof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/kernprof/diffusion_python_memory.kernprof -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/kernprof/diffusion_scipy.kernprof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/kernprof/diffusion_scipy.kernprof -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/memit/diffusion_numpy.memit: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/memit/diffusion_numpy_memory.memit: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/memit/diffusion_numpy_memory2.memit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/memit/diffusion_numpy_memory2.memit -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/memit/diffusion_numpy_memory2_numexpr.memit: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/memit/diffusion_numpy_memory2_numexpr_single.memit: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/memit/diffusion_numpy_naive.memit: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/memit/diffusion_python.memit: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/memit/diffusion_python_memory.memit: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/memit/diffusion_scipy.memit: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/perf/diffusion_numpy.novec.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/perf/diffusion_numpy.novec.perf -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/perf/diffusion_numpy.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/perf/diffusion_numpy.perf -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/perf/diffusion_numpy_memory.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/perf/diffusion_numpy_memory.perf -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/perf/diffusion_numpy_memory2.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/perf/diffusion_numpy_memory2.perf -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/perf/diffusion_numpy_memory2_numexpr.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/perf/diffusion_numpy_memory2_numexpr.perf -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/perf/diffusion_numpy_memory2_numexpr_single.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/perf/diffusion_numpy_memory2_numexpr_single.perf -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/perf/diffusion_numpy_naive.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/perf/diffusion_numpy_naive.perf -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/perf/diffusion_python.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/perf/diffusion_python.perf -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/perf/diffusion_python_memory.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/perf/diffusion_python_memory.perf -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/perf/diffusion_scipy.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/perf/diffusion_scipy.perf -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/time/diffusion_numpy.time: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/time/diffusion_numpy.time -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/time/diffusion_numpy_memory.time: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/time/diffusion_numpy_memory.time -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/time/diffusion_numpy_memory2.time: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/time/diffusion_numpy_memory2.time -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/time/diffusion_numpy_memory2_numexpr.time: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/time/diffusion_numpy_memory2_numexpr.time -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/time/diffusion_numpy_memory2_numexpr_single.time: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/time/diffusion_numpy_memory2_numexpr_single.time -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/time/diffusion_numpy_naive.time: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/time/diffusion_numpy_naive.time -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/time/diffusion_python.time: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/time/diffusion_python.time -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/time/diffusion_python_memory.time: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/time/diffusion_python_memory.time -------------------------------------------------------------------------------- /06_matrix/diffusion_2d/time/diffusion_scipy.time: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/diffusion_2d/time/diffusion_scipy.time -------------------------------------------------------------------------------- /06_matrix/norm/Makefile: -------------------------------------------------------------------------------- 1 | include ../../Makefile 2 | -------------------------------------------------------------------------------- /06_matrix/norm/norm_array.memit: -------------------------------------------------------------------------------- 1 | /usr/bin/python: No module named memory_profiler 2 | -------------------------------------------------------------------------------- /06_matrix/norm/norm_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/norm/norm_array.py -------------------------------------------------------------------------------- /06_matrix/norm/norm_numpy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/norm/norm_numpy.py -------------------------------------------------------------------------------- /06_matrix/norm/norm_numpy_dot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/norm/norm_numpy_dot.py -------------------------------------------------------------------------------- /06_matrix/norm/norm_python.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/norm/norm_python.py -------------------------------------------------------------------------------- /06_matrix/norm/norm_python_comprehension.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/norm/norm_python_comprehension.py -------------------------------------------------------------------------------- /06_matrix/norm/perf/norm_array.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/norm/perf/norm_array.perf -------------------------------------------------------------------------------- /06_matrix/norm/perf/norm_numpy.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/norm/perf/norm_numpy.perf -------------------------------------------------------------------------------- /06_matrix/norm/perf/norm_numpy_dot.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/norm/perf/norm_numpy_dot.perf -------------------------------------------------------------------------------- /06_matrix/norm/perf/norm_python.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/norm/perf/norm_python.perf -------------------------------------------------------------------------------- /06_matrix/norm/perf/norm_python_comprehension.perf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/norm/perf/norm_python_comprehension.perf -------------------------------------------------------------------------------- /06_matrix/norm/time/norm_array.time: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/norm/time/norm_array.time -------------------------------------------------------------------------------- /06_matrix/norm/time/norm_numpy.time: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/norm/time/norm_numpy.time -------------------------------------------------------------------------------- /06_matrix/norm/time/norm_python.time: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/norm/time/norm_python.time -------------------------------------------------------------------------------- /06_matrix/pandas/compare_sklearn_lstsq_timing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/pandas/compare_sklearn_lstsq_timing.py -------------------------------------------------------------------------------- /06_matrix/pandas/generate_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/pandas/generate_data.py -------------------------------------------------------------------------------- /06_matrix/pandas/plot_min_max_slopes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/pandas/plot_min_max_slopes.py -------------------------------------------------------------------------------- /06_matrix/pandas/sklearn_line_profiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/pandas/sklearn_line_profiler.py -------------------------------------------------------------------------------- /06_matrix/pandas/str_operation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/pandas/str_operation.py -------------------------------------------------------------------------------- /06_matrix/pandas/time_iteration_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/pandas/time_iteration_methods.py -------------------------------------------------------------------------------- /06_matrix/pandas/utility.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/06_matrix/pandas/utility.py -------------------------------------------------------------------------------- /07_compiling/.gitignore: -------------------------------------------------------------------------------- 1 | diffusion.so 2 | -------------------------------------------------------------------------------- /07_compiling/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/Makefile -------------------------------------------------------------------------------- /07_compiling/cffi/diffusion_2d_cffi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/cffi/diffusion_2d_cffi.py -------------------------------------------------------------------------------- /07_compiling/cffi/diffusion_2d_cffi_inline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/cffi/diffusion_2d_cffi_inline.py -------------------------------------------------------------------------------- /07_compiling/cpython_module/.gitignore: -------------------------------------------------------------------------------- 1 | *.so 2 | build 3 | -------------------------------------------------------------------------------- /07_compiling/cpython_module/cdiffusion/diffusion.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/cpython_module/cdiffusion/diffusion.h -------------------------------------------------------------------------------- /07_compiling/cpython_module/cdiffusion/python_interface.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/cpython_module/cdiffusion/python_interface.c -------------------------------------------------------------------------------- /07_compiling/cpython_module/diffusion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/cpython_module/diffusion.py -------------------------------------------------------------------------------- /07_compiling/cpython_module/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/cpython_module/setup.py -------------------------------------------------------------------------------- /07_compiling/ctypes/diffusion_ctypes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/ctypes/diffusion_ctypes.py -------------------------------------------------------------------------------- /07_compiling/diffusion.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/diffusion.c -------------------------------------------------------------------------------- /07_compiling/f2py/.gitignore: -------------------------------------------------------------------------------- 1 | *.so 2 | -------------------------------------------------------------------------------- /07_compiling/f2py/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/f2py/Makefile -------------------------------------------------------------------------------- /07_compiling/f2py/diffusion.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/f2py/diffusion.f90 -------------------------------------------------------------------------------- /07_compiling/f2py/diffusion_fortran.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/f2py/diffusion_fortran.py -------------------------------------------------------------------------------- /07_compiling/julia/cython/cpython/cythonfn.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/cpython/cythonfn.pyx -------------------------------------------------------------------------------- /07_compiling/julia/cython/cpython/cythonfn1.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/cpython/cythonfn1.pyx -------------------------------------------------------------------------------- /07_compiling/julia/cython/cpython/cythonfn2.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/cpython/cythonfn2.pyx -------------------------------------------------------------------------------- /07_compiling/julia/cython/cpython/cythonfn3.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/cpython/cythonfn3.pyx -------------------------------------------------------------------------------- /07_compiling/julia/cython/cpython/cythonfn4.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/cpython/cythonfn4.pyx -------------------------------------------------------------------------------- /07_compiling/julia/cython/cpython/cythonfn5.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/cpython/cythonfn5.pyx -------------------------------------------------------------------------------- /07_compiling/julia/cython/cpython/julia1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/cpython/julia1.py -------------------------------------------------------------------------------- /07_compiling/julia/cython/cpython/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/cpython/setup.py -------------------------------------------------------------------------------- /07_compiling/julia/cython/cpython_pyximport/cythonfn.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/cpython_pyximport/cythonfn.pyx -------------------------------------------------------------------------------- /07_compiling/julia/cython/cpython_pyximport/julia1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/cpython_pyximport/julia1.py -------------------------------------------------------------------------------- /07_compiling/julia/cython/nparray_memoryview/cythonfn.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/nparray_memoryview/cythonfn.pyx -------------------------------------------------------------------------------- /07_compiling/julia/cython/nparray_memoryview/cythonfn1.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/nparray_memoryview/cythonfn1.pyx -------------------------------------------------------------------------------- /07_compiling/julia/cython/nparray_memoryview/cythonfn2.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/nparray_memoryview/cythonfn2.pyx -------------------------------------------------------------------------------- /07_compiling/julia/cython/nparray_memoryview/julia1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/nparray_memoryview/julia1.py -------------------------------------------------------------------------------- /07_compiling/julia/cython/nparray_memoryview/julia1_np_nocython.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/nparray_memoryview/julia1_np_nocython.py -------------------------------------------------------------------------------- /07_compiling/julia/cython/nparray_memoryview/parallel/cythonfn.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/nparray_memoryview/parallel/cythonfn.pyx -------------------------------------------------------------------------------- /07_compiling/julia/cython/nparray_memoryview/parallel/cythonfn1.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/nparray_memoryview/parallel/cythonfn1.pyx -------------------------------------------------------------------------------- /07_compiling/julia/cython/nparray_memoryview/parallel/cythonfn2.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/nparray_memoryview/parallel/cythonfn2.pyx -------------------------------------------------------------------------------- /07_compiling/julia/cython/nparray_memoryview/parallel/cythonfn3.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/nparray_memoryview/parallel/cythonfn3.pyx -------------------------------------------------------------------------------- /07_compiling/julia/cython/nparray_memoryview/parallel/julia1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/nparray_memoryview/parallel/julia1.py -------------------------------------------------------------------------------- /07_compiling/julia/cython/nparray_memoryview/parallel/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/nparray_memoryview/parallel/setup.py -------------------------------------------------------------------------------- /07_compiling/julia/cython/nparray_memoryview/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/cython/nparray_memoryview/setup.py -------------------------------------------------------------------------------- /07_compiling/julia/julia1_nopil.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/julia1_nopil.py -------------------------------------------------------------------------------- /07_compiling/julia/julia1_nopil_expanded_math_pypy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/julia1_nopil_expanded_math_pypy.py -------------------------------------------------------------------------------- /07_compiling/julia/julia1_numba.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/julia1_numba.py -------------------------------------------------------------------------------- /07_compiling/julia/julia1_numba_expandedmath_inspection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/julia/julia1_numba_expandedmath_inspection.py -------------------------------------------------------------------------------- /07_compiling/pytorch/compare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/pytorch/compare.py -------------------------------------------------------------------------------- /07_compiling/pytorch/diffusion_numpy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/pytorch/diffusion_numpy.py -------------------------------------------------------------------------------- /07_compiling/pytorch/diffusion_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/pytorch/diffusion_pytorch.py -------------------------------------------------------------------------------- /07_compiling/pytorch/random_access.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/07_compiling/pytorch/random_access.py -------------------------------------------------------------------------------- /07_compiling/pytorch/requirements.txt: -------------------------------------------------------------------------------- 1 | pytorch 2 | -------------------------------------------------------------------------------- /08_concurrency/crawler/asyncio/crawler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/asyncio/crawler.py -------------------------------------------------------------------------------- /08_concurrency/crawler/benchmark.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/benchmark.sh -------------------------------------------------------------------------------- /08_concurrency/crawler/gevent/crawler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/gevent/crawler.py -------------------------------------------------------------------------------- /08_concurrency/crawler/images/asyncio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/images/asyncio.png -------------------------------------------------------------------------------- /08_concurrency/crawler/images/gevent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/images/gevent.png -------------------------------------------------------------------------------- /08_concurrency/crawler/images/grequests.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/images/grequests.png -------------------------------------------------------------------------------- /08_concurrency/crawler/images/parallel_requests.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/images/parallel_requests.png -------------------------------------------------------------------------------- /08_concurrency/crawler/images/serial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/images/serial.png -------------------------------------------------------------------------------- /08_concurrency/crawler/images/tornado.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/images/tornado.png -------------------------------------------------------------------------------- /08_concurrency/crawler/metric_data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/metric_data.json -------------------------------------------------------------------------------- /08_concurrency/crawler/parallel_requests.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/parallel_requests.json -------------------------------------------------------------------------------- /08_concurrency/crawler/parallel_requests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/parallel_requests.py -------------------------------------------------------------------------------- /08_concurrency/crawler/serial/crawler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/serial/crawler.py -------------------------------------------------------------------------------- /08_concurrency/crawler/server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/server.py -------------------------------------------------------------------------------- /08_concurrency/crawler/tornado/crawler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/tornado/crawler.py -------------------------------------------------------------------------------- /08_concurrency/crawler/tornado_callback/crawler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/tornado_callback/crawler.py -------------------------------------------------------------------------------- /08_concurrency/crawler/visualize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/crawler/visualize.py -------------------------------------------------------------------------------- /08_concurrency/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/requirements.txt -------------------------------------------------------------------------------- /08_concurrency/workload/images/async_callgraph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/workload/images/async_callgraph.png -------------------------------------------------------------------------------- /08_concurrency/workload/images/workload_async_batches_no-IO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/workload/images/workload_async_batches_no-IO.png -------------------------------------------------------------------------------- /08_concurrency/workload/images/workload_async_batches_no-IO_serial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/workload/images/workload_async_batches_no-IO_serial.png -------------------------------------------------------------------------------- /08_concurrency/workload/images/workload_async_no-IO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/workload/images/workload_async_no-IO.png -------------------------------------------------------------------------------- /08_concurrency/workload/images/workload_batches_no-IO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/workload/images/workload_batches_no-IO.png -------------------------------------------------------------------------------- /08_concurrency/workload/images/workload_file-IO_no-IO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/workload/images/workload_file-IO_no-IO.png -------------------------------------------------------------------------------- /08_concurrency/workload/images/workload_no-IO_serial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/workload/images/workload_no-IO_serial.png -------------------------------------------------------------------------------- /08_concurrency/workload/server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/workload/server.py -------------------------------------------------------------------------------- /08_concurrency/workload/workload.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/workload/workload.py -------------------------------------------------------------------------------- /08_concurrency/workload/workloads.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/08_concurrency/workload/workloads.json -------------------------------------------------------------------------------- /09_multiprocessing/locking/ex1_lock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/locking/ex1_lock.py -------------------------------------------------------------------------------- /09_multiprocessing/locking/ex1_nolock1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/locking/ex1_nolock1.py -------------------------------------------------------------------------------- /09_multiprocessing/locking/ex1_nolock4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/locking/ex1_nolock4.py -------------------------------------------------------------------------------- /09_multiprocessing/locking/ex2_lock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/locking/ex2_lock.py -------------------------------------------------------------------------------- /09_multiprocessing/locking/ex2_lock_rawvalue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/locking/ex2_lock_rawvalue.py -------------------------------------------------------------------------------- /09_multiprocessing/locking/ex2_nolock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/locking/ex2_nolock.py -------------------------------------------------------------------------------- /09_multiprocessing/locking/ex3_redis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/locking/ex3_redis.py -------------------------------------------------------------------------------- /09_multiprocessing/np_shared_example/np_shared.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/np_shared_example/np_shared.py -------------------------------------------------------------------------------- /09_multiprocessing/np_shared_example/rnd_demo/np_shared_rnd_parallel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/np_shared_example/rnd_demo/np_shared_rnd_parallel.py -------------------------------------------------------------------------------- /09_multiprocessing/np_shared_example/rnd_demo/np_shared_rnd_serial.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/np_shared_example/rnd_demo/np_shared_rnd_serial.py -------------------------------------------------------------------------------- /09_multiprocessing/pi_estimation/pi_lists_parallel/pi_graph_speed_tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/pi_estimation/pi_lists_parallel/pi_graph_speed_tests.py -------------------------------------------------------------------------------- /09_multiprocessing/pi_estimation/pi_lists_parallel/pi_lists_parallel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/pi_estimation/pi_lists_parallel/pi_lists_parallel.py -------------------------------------------------------------------------------- /09_multiprocessing/pi_estimation/pi_lists_parallel/pi_lists_parallel_joblib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/pi_estimation/pi_lists_parallel/pi_lists_parallel_joblib.py -------------------------------------------------------------------------------- /09_multiprocessing/pi_estimation/pi_lists_parallel/pi_lists_parallel_joblib_cache.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/pi_estimation/pi_lists_parallel/pi_lists_parallel_joblib_cache.py -------------------------------------------------------------------------------- /09_multiprocessing/pi_estimation/pi_lists_parallel/pi_lists_series.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/pi_estimation/pi_lists_parallel/pi_lists_series.py -------------------------------------------------------------------------------- /09_multiprocessing/pi_estimation/pi_monte_carlo_diagram/pi_plot_monte_carlo_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/pi_estimation/pi_monte_carlo_diagram/pi_plot_monte_carlo_example.py -------------------------------------------------------------------------------- /09_multiprocessing/pi_estimation/pi_processes_parallel/pi_graph_speed_tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/pi_estimation/pi_processes_parallel/pi_graph_speed_tests.py -------------------------------------------------------------------------------- /09_multiprocessing/pi_estimation/pi_processes_parallel/pi_numpy_parallel_worker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/pi_estimation/pi_processes_parallel/pi_numpy_parallel_worker.py -------------------------------------------------------------------------------- /09_multiprocessing/pi_estimation/pi_processes_parallel/pi_numpy_serial.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/pi_estimation/pi_processes_parallel/pi_numpy_serial.py -------------------------------------------------------------------------------- /09_multiprocessing/pi_estimation/pi_processes_parallel/pi_numpy_serial_blocks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/pi_estimation/pi_processes_parallel/pi_numpy_serial_blocks.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_generation/plot_serial_vs_queue_times.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_generation/plot_serial_vs_queue_times.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_generation/primes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_generation/primes.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_generation/primes_pool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_generation/primes_pool.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_generation/primes_queue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_generation/primes_queue.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_generation/primes_queue_jobs_feeder_thread.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_generation/primes_queue_jobs_feeder_thread.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_generation/primes_queue_less_work.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_generation/primes_queue_less_work.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_validation/create_range.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_validation/create_range.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_validation/plot_prime_validation_times.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_validation/plot_prime_validation_times.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_validation/primes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_validation/primes.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_validation/primes_factor_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_validation/primes_factor_test.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_validation/primes_pool_per_number1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_validation/primes_pool_per_number1.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_validation/primes_pool_per_number2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_validation/primes_pool_per_number2.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_validation/primes_pool_per_number_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_validation/primes_pool_per_number_manager.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_validation/primes_pool_per_number_mmap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_validation/primes_pool_per_number_mmap.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_validation/primes_pool_per_number_mmap2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_validation/primes_pool_per_number_mmap2.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_validation/primes_pool_per_number_mmap3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_validation/primes_pool_per_number_mmap3.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_validation/primes_pool_per_number_mmap4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_validation/primes_pool_per_number_mmap4.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_validation/primes_pool_per_number_redis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_validation/primes_pool_per_number_redis.py -------------------------------------------------------------------------------- /09_multiprocessing/prime_validation/primes_pool_per_number_value.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/09_multiprocessing/prime_validation/primes_pool_per_number_value.py -------------------------------------------------------------------------------- /10_clusters/docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/10_clusters/docker/Dockerfile -------------------------------------------------------------------------------- /10_clusters/docker/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/10_clusters/docker/Makefile -------------------------------------------------------------------------------- /10_clusters/docker/diffusion_numpy_memory2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/10_clusters/docker/diffusion_numpy_memory2.py -------------------------------------------------------------------------------- /10_clusters/docker/requirements.txt: -------------------------------------------------------------------------------- 1 | numpy>=1.18.0 2 | -------------------------------------------------------------------------------- /10_clusters/ipython_parallel/pi_ipython_cluster.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/10_clusters/ipython_parallel/pi_ipython_cluster.py -------------------------------------------------------------------------------- /10_clusters/nsq/nsq_worker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/10_clusters/nsq/nsq_worker.py -------------------------------------------------------------------------------- /11_less_ram/compressing_text/all_unique_words_wikipedia_via_gensim.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/compressing_text/all_unique_words_wikipedia_via_gensim.txt -------------------------------------------------------------------------------- /11_less_ram/compressing_text/plot_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/compressing_text/plot_example.py -------------------------------------------------------------------------------- /11_less_ram/compressing_text/text_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/compressing_text/text_example.py -------------------------------------------------------------------------------- /11_less_ram/compressing_text/text_example_clean_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/compressing_text/text_example_clean_list.py -------------------------------------------------------------------------------- /11_less_ram/compressing_text/text_example_clean_list_wikipedia_gensim.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/compressing_text/text_example_clean_list_wikipedia_gensim.py -------------------------------------------------------------------------------- /11_less_ram/compressing_text/text_example_dawg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/compressing_text/text_example_dawg.py -------------------------------------------------------------------------------- /11_less_ram/compressing_text/text_example_dawg_load_only.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/compressing_text/text_example_dawg_load_only.py -------------------------------------------------------------------------------- /11_less_ram/compressing_text/text_example_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/compressing_text/text_example_list.py -------------------------------------------------------------------------------- /11_less_ram/compressing_text/text_example_list_bisect.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/compressing_text/text_example_list_bisect.py -------------------------------------------------------------------------------- /11_less_ram/compressing_text/text_example_set.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/compressing_text/text_example_set.py -------------------------------------------------------------------------------- /11_less_ram/compressing_text/text_example_trie.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/compressing_text/text_example_trie.py -------------------------------------------------------------------------------- /11_less_ram/compressing_text/text_example_trie_load_only.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/compressing_text/text_example_trie_load_only.py -------------------------------------------------------------------------------- /11_less_ram/getsizeof/asizeof.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/getsizeof/asizeof.py -------------------------------------------------------------------------------- /11_less_ram/morris_counter_example/morris_counter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/morris_counter_example/morris_counter.py -------------------------------------------------------------------------------- /11_less_ram/morris_counter_example/show_morris_counter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/morris_counter_example/show_morris_counter.py -------------------------------------------------------------------------------- /11_less_ram/numexpr_pandas/make_cross_entropy_picture.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/numexpr_pandas/make_cross_entropy_picture.py -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/_benchmark.clean.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/probabilistic_datastructures/_benchmark.clean.pkl -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/_benchmark.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/probabilistic_datastructures/_benchmark.pkl -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/_benchmark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/probabilistic_datastructures/_benchmark.py -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/bloomfilter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/probabilistic_datastructures/bloomfilter.py -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/hyperloglog.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/probabilistic_datastructures/hyperloglog.py -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/kminvalues.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/probabilistic_datastructures/kminvalues.py -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/ll.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/probabilistic_datastructures/ll.py -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/llregister.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/probabilistic_datastructures/llregister.py -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/morriscounter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/probabilistic_datastructures/morriscounter.py -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/prob_ds_figure.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/probabilistic_datastructures/prob_ds_figure.py -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/requirements.txt: -------------------------------------------------------------------------------- 1 | bitarray 2 | mmh3 3 | blist 4 | -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/results/unique.pkl: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/scalingbloomfilter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/probabilistic_datastructures/scalingbloomfilter.py -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/superll.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/probabilistic_datastructures/superll.py -------------------------------------------------------------------------------- /11_less_ram/probabilistic_datastructures/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/probabilistic_datastructures/utils.py -------------------------------------------------------------------------------- /11_less_ram/sklearn_hashing_trick/feature_hashing_explanation2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/sklearn_hashing_trick/feature_hashing_explanation2.py -------------------------------------------------------------------------------- /11_less_ram/sklearn_hashing_trick/feature_hashing_explanation_nb.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/sklearn_hashing_trick/feature_hashing_explanation_nb.ipynb -------------------------------------------------------------------------------- /11_less_ram/sklearn_hashing_trick/feature_hashing_test1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/sklearn_hashing_trick/feature_hashing_test1.py -------------------------------------------------------------------------------- /11_less_ram/sparse/benchmark_sparse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/11_less_ram/sparse/benchmark_sparse.py -------------------------------------------------------------------------------- /12_lessons/sieve.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/12_lessons/sieve.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/README.md -------------------------------------------------------------------------------- /cover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/cover.png -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/high-performance-python-2e-ja/HEAD/pyproject.toml --------------------------------------------------------------------------------