We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ptmorris05/scalene-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
memory_heavy.py•550 B
"""Memory-intensive operations test."""
def allocate_large_list() -> list[int]:
"""Allocate a large list."""
return [i for i in range(10_000_000)]
def process_data(data: list[int]) -> int:
"""Process large data structure."""
total = sum(x * 2 for x in data)
return total
def main() -> None:
"""Main function."""
print("Allocating large list...")
data = allocate_large_list()
print("Processing data...")
result = process_data(data)
print(f"Result: {result}")
if __name__ == "__main__":
main()