---
title: "Think Like an Octopus (in Python)"
url: https://daily.dev/posts/think-like-an-octopus-in-python--8qya455nc
source_url: https://engineering.blackrock.com/think-like-an-octopus-in-python-a4beb65e04e3
type: article
source: "Blackrock Engineering"
published: 2024-03-21T13:13:09.604Z
updated: 2024-05-09T09:06:08.895Z
tags: ["python", "numpy"]
reading_time: 17
upvotes: 7
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Think Like an Octopus (in Python)

**[Blackrock Engineering](https://daily.dev/sources/blackrock)** · 17 min read · 7 upvotes · 0 comments

## Summary

This post explores different options in Python for calculating the market value percent of a sector in an ETF. It discusses trade-offs between methods such as threading, multiprocessing, C++ wrappers, and numpy. The author highlights that numpy is the winner due to its performance, controls, safeguards, and features.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://engineering.blackrock.com/think-like-an-octopus-in-python-a4beb65e04e3>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#numpy](https://daily.dev/tags/numpy)

[View this post on daily.dev](https://daily.dev/posts/think-like-an-octopus-in-python--8qya455nc)
